summaryrefslogtreecommitdiff
path: root/src/bindings/mono/eo_mono
diff options
context:
space:
mode:
authorYeongjong Lee <yj34.lee@samsung.com>2020-01-23 07:30:13 +0900
committerWooHyun Jung <wh0705.jung@samsung.com>2020-01-23 07:30:14 +0900
commit97098dcc50b62e51dad3469619ed55242ca01a80 (patch)
tree33d372fef1f883a12f4172ceb9ab07223ca28805 /src/bindings/mono/eo_mono
parent5137f6d143c681fcf4f53e4e45df8af1a538ae75 (diff)
csharp: cleanup concrete class
Summary: Concrete class is only used to call static member of NativeMethod. they don't need any inheritance and implementation of c functions. Depends on D9893 Test Plan: ninja test Reviewers: lauromoura, felipealmeida Subscribers: Jaehyun_Cho, woohyun, segfaultxavi, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9894
Diffstat (limited to 'src/bindings/mono/eo_mono')
-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",