mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-16 19:44:45 +02:00
Merge pull request #107 from xDarkice/ambiguousmatch
glib.Value: Make GetMethod more specific to avoid ambiguous matches
This commit is contained in:
commit
bc40506cab
@ -433,7 +433,7 @@ namespace GLib {
|
|||||||
else if (t.IsSubclassOf (typeof (GLib.Opaque)))
|
else if (t.IsSubclassOf (typeof (GLib.Opaque)))
|
||||||
return (GLib.Opaque) this;
|
return (GLib.Opaque) this;
|
||||||
|
|
||||||
MethodInfo mi = t.GetMethod ("New", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy);
|
MethodInfo mi = t.GetMethod ("New", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy, null, new Type[] { typeof(IntPtr) }, null);
|
||||||
if (mi != null)
|
if (mi != null)
|
||||||
return mi.Invoke (null, new object[] {boxed_ptr});
|
return mi.Invoke (null, new object[] {boxed_ptr});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user