summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono/iwrapper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/mono/eo_mono/iwrapper.cs')
-rw-r--r--src/bindings/mono/eo_mono/iwrapper.cs12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/bindings/mono/eo_mono/iwrapper.cs b/src/bindings/mono/eo_mono/iwrapper.cs
index 780735fcca..ceae250bc9 100644
--- a/src/bindings/mono/eo_mono/iwrapper.cs
+++ b/src/bindings/mono/eo_mono/iwrapper.cs
@@ -1221,14 +1221,12 @@ internal static class ClassRegister
1221 1221
1222 if (objectType.IsInterface) 1222 if (objectType.IsInterface)
1223 { 1223 {
1224 // Try to get the *Concrete class 1224 // Try to get the *NativeMethods class
1225 var assembly = objectType.Assembly; 1225 var nativeMethods = (Efl.Eo.NativeClass)System.Attribute.GetCustomAttributes(objectType)?.FirstOrDefault(attr => attr is Efl.Eo.NativeClass);
1226 objectType = assembly.GetType(objectType.FullName + "Concrete"); 1226 if (nativeMethods == null)
1227
1228 if (objectType == null)
1229 {
1230 return IntPtr.Zero; 1227 return IntPtr.Zero;
1231 } 1228
1229 return nativeMethods.GetEflClass();
1232 } 1230 }
1233 1231
1234 var method = objectType.GetMethod("GetEflClassStatic", 1232 var method = objectType.GetMethod("GetEflClassStatic",