Add JsonSerializer.ParseID with return value

This commit is contained in:
Wojtek Figat
2021-07-20 16:29:34 +02:00
parent 669b99f8e4
commit 88902bdb5d

View File

@@ -368,6 +368,17 @@ namespace FlaxEngine.Json
return GetStringID(&id);
}
/// <summary>
/// Parses the given object identifier represented in the internal serialization format.
/// </summary>
/// <param name="str">The ID string.</param>
/// <returns>The identifier.</returns>
public static Guid ParseID(string str)
{
ParseID(str, out var id);
return id;
}
/// <summary>
/// Parses the given object identifier represented in the internal serialization format.
/// </summary>