Merge pull request #107 from xDarkice/ambiguousmatch
glib.Value: Make GetMethod more specific to avoid ambiguous matches
This commit is contained in:
commit
bc40506cab
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue