JsonValueExtensionsAsGuid Method
Namespace: KGySoft.JsonAssembly: KGySoft.Json (in KGySoft.Json.dll) Version: 3.0.0
public static Guid? AsGuid(
this JsonValue json
)
<ExtensionAttribute>
Public Shared Function AsGuid (
json As JsonValue
) As Guid?
public:
[ExtensionAttribute]
static Nullable<Guid> AsGuid(
JsonValue json
)
[<ExtensionAttribute>]
static member AsGuid :
json : JsonValue -> Nullable<Guid>
- json JsonValue
- The JsonValue to be converted to Guid.
NullableGuidA
Guid value if
json could be converted; otherwise,
.In Visual Basic and C#, you can call this method as an instance method on any object of type
JsonValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).