This commit is contained in:
2024-01-01 13:29:59 +03:00
parent ce063558c5
commit f4872e1d49
9 changed files with 53 additions and 20 deletions

View File

@@ -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);