efl-mono: Add test and fix problem with private dynamic types passed as parameters
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Tue, 9 Apr 2019 21:37:01 +0000 (18:37 -0300)
committerShinwoo Kim <cinoo.kim@samsung.com>
Wed, 17 Apr 2019 01:03:26 +0000 (10:03 +0900)
Summary:
The code that searches the type dynamically fails instead of falling
back to Efl.Object. Now it fallbacks to Efl.Object.

Fixes T7783

Reviewers: bu5hm4n, vitor.sousa, segfaultxavi, woohyun, Jaehyun_Cho, YOhoho, lauromoura

Reviewed By: vitor.sousa, lauromoura

Subscribers: lauromoura, cedric, #reviewers, #committers

Tags: #efl

Maniphest Tasks: T7783

Differential Revision: https://phab.enlightenment.org/D8574

src/bindings/mono/eo_mono/iwrapper.cs

index 83d8fd5..5850da8 100644 (file)
@@ -824,7 +824,7 @@ public static class ClassRegister
 
             if (t == null)
             {
-                throw new System.InvalidOperationException($"Could not find the C# binding class for the EFL class: {name}");
+                return typeof(Efl.Object);
             }
         }