База для нового бэкэнда
This commit is contained in:
1 parent
be6dedaee4
commit
c802f337c7
18 files changed
+245
-163
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user