Event binding bug found

This commit is contained in:
micialware committed 2025-05-07 09:03:20 +03:00
1 parent 99015a3d5e
commit 2f65fb24c0
5 files changed
+13 -12

No files matched your search

+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