2 using System
.Reflection
;
4 public static class GObjectIntPtrCtorVerifier
6 public static void Main (string [] args
)
8 foreach (var path
in args
) {
13 private static void Verify (string path
)
15 foreach (var type
in Assembly
.LoadFrom (path
).GetTypes ()) {
16 if (!type
.IsSubclassOf (typeof (GLib
.Object
))) {
22 foreach (var ctor
in type
.GetConstructors (BindingFlags
.Instance
| BindingFlags
.Public
| BindingFlags
.NonPublic
)) {
23 var args
= ctor
.GetParameters ();
24 if ((safe
= (ctor
.Attributes
& (MethodAttributes
.Public
|
25 MethodAttributes
.Family
)) != 0 &&
28 args
[0].ParameterType
== typeof (IntPtr
))) {
34 Console
.WriteLine (type
);