StrToGuid string

.StrToGuid()

Takes a string containing a GUID and converts it to a Guid type.

Method

public static Guid StrToGuid(this string value)
string value

The string to convert to a Guid.

Example

C#
Guid x = "12345678-1234-1234-1234-123456789012".StrToGuid();