2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-12-14 08:50:23 +00:00

Async serialization

This commit is contained in:
2025-11-04 11:47:40 +03:00
parent a764b452e2
commit fc943c8a36
10 changed files with 717 additions and 119 deletions

View File

@@ -184,7 +184,7 @@ public class Instance
if (at != null)
if (at.PropertyInfo.CanWrite)
at.PropertyInfo.SetValue(res, DC.CastConvert(kv.Value, at.PropertyInfo.PropertyType));
at.PropertyInfo.SetValue(res, RuntimeCaster.Cast(kv.Value, at.PropertyInfo.PropertyType));
}
}
@@ -363,7 +363,7 @@ public class Instance
{
loading = true;
pt.PropertyInfo.SetValue(res, DC.CastConvert(value, pt.PropertyInfo.PropertyType));
pt.PropertyInfo.SetValue(res, RuntimeCaster.Cast(value, pt.PropertyInfo.PropertyType));
}
catch (Exception ex)
{