Event binding system update

This commit is contained in:
2025-05-07 09:55:15 +03:00
parent 2f65fb24c0
commit bc74a97b14
3 changed files with 22 additions and 6 deletions
+1 -3
View File
@@ -213,9 +213,7 @@ namespace mROA.Cbor
if (obj is IShared)
{
var interfaces = obj.GetType().GetInterfaces();
var generic = interfaces.FirstOrDefault(i => typeof(IShared).IsAssignableFrom(i));
var sharedShell = typeof(SharedObjectShellShell<>).MakeGenericType(generic);
var sharedShell = typeof(SharedObjectShellShell<object>);
var so =
Activator.CreateInstance(sharedShell, obj, context) as
ISharedObjectShell;