Add JsonSerializer.ParseID with return value
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user