20240101
This commit is contained in:
@@ -86,7 +86,7 @@ public struct TwoDimSize (int width = 0, int height = 0): ISerializable
|
||||
/// Сериализовать элемент в формат json
|
||||
/// </summary>
|
||||
/// <returns>Строка в формате json</returns>
|
||||
public readonly string Serialize () => Serializer.Serialize(ToString());
|
||||
public readonly string Serialize () => new SysTextSerializer().Serialize(ToString());
|
||||
|
||||
/// <summary>
|
||||
/// Восстановить элемент из формата json
|
||||
@@ -95,7 +95,7 @@ public struct TwoDimSize (int width = 0, int height = 0): ISerializable
|
||||
public void Deserialize (string json)
|
||||
{
|
||||
// Десериализую строку
|
||||
string deserialized = Serializer.Deserialize<string>(json) ?? "0:0";
|
||||
string deserialized = new SysTextSerializer().Deserialize<string>(json) ?? "0:0";
|
||||
|
||||
// Перевожу строку в двумерный размер
|
||||
TwoDimSize result = Parse(deserialized);
|
||||
|
Reference in New Issue
Block a user