JObjectExtensions.GetGuid method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Json.Extensions |
---|---|
Assembly | Skybrud.Essentials.dll |
GetGuid(JObject, string)
Extension method
Gets the GUID value of the token matching the specified path
, or System.Guid.Empty
if path
doesn't match a token.
public static Guid GetGuid(this JObject obj, string path)
GetGuid(JObject, string, Guid)
Extension method
Gets the value of the token matching the specified path
, or fallback
if path
doesn't match a token. If the property value doesn't match a valid GUID, the
value of fallback
will be returned as well.
public static Guid GetGuid(this JObject obj, string path, Guid fallback)