База для нового бэкэнда

This commit is contained in:
2025-03-06 14:10:52 +03:00
parent be6dedaee4
commit c802f337c7
18 changed files with 245 additions and 163 deletions
+4 -1
View File
@@ -52,8 +52,11 @@ namespace mROA.Cbor
return (T)Cast(nonCasted, typeof(T), context);
}
public object Cast(object nonCasted, Type type, IEndPointContext? context)
public object? Cast(object? nonCasted, Type type, IEndPointContext? context)
{
if (nonCasted == null)
return null;
if (nonCasted.GetType() == type)
return nonCasted;