Event binding bug found

This commit is contained in:
2025-05-07 09:03:20 +03:00
parent 99015a3d5e
commit 2f65fb24c0
5 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -213,7 +213,8 @@ namespace mROA.Cbor
if (obj is IShared)
{
var generic = obj.GetType().GetInterfaces().FirstOrDefault(i => typeof(IShared).IsAssignableFrom(i));
var interfaces = obj.GetType().GetInterfaces();
var generic = interfaces.FirstOrDefault(i => typeof(IShared).IsAssignableFrom(i));
var sharedShell = typeof(SharedObjectShellShell<>).MakeGenericType(generic);
var so =
Activator.CreateInstance(sharedShell, obj, context) as