Event binding system update
This commit is contained in:
1 parent
2f65fb24c0
commit
bc74a97b14
3 files changed
+22
-6
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user