StrToNullGuid string

.StrToNullGuid()

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

Method

public static Guid? StrToNullGuid(this string value)
string value

The string to convert to a Guid?.

Example

C#
Guid x = "".StrToNullGuid();