Skip to content

Failed to create static field for a Guid #1621

Closed
nanoframework/CoreLibrary
#244
@josesimoes

Description

@josesimoes

Library/API/IoT binding

core library

Visual Studio version

No response

.NET nanoFramework extension version

No response

Target name(s)

No response

Firmware version

No response

Device capabilities

No response

Description

Failed to have a static field with a Guid parsed from a string.
Reported in Discord server

How to reproduce

No response

Expected behaviour

No response

Screenshots

Image

Sample project or code

public class Program
{
private static Guid baseUuid1 = new Guid("00000000-0000-1000-8000-00805f9b34fb");
private static byte[] baseUuid2 = new Guid("00000000-0000-1000-8000-00805f9b34fb").ToByteArray();
private static string _mac;
public static void Main()
{
Debug.WriteLine("Hello from nanoFramework!");
}
}

Aditional information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions