diff --git a/src/TypeImplementer.cs b/src/TypeImplementer.cs index 6ab7975..3a8d9f8 100644 --- a/src/TypeImplementer.cs +++ b/src/TypeImplementer.cs @@ -169,6 +169,8 @@ namespace NDesk.DBus MethodInfo exactWriteMethod = typeof (MessageWriter).GetMethod ("Write", BindingFlags.ExactBinding | BindingFlags.Instance | BindingFlags.Public, null, new Type[] {tUnder}, null); //ExactBinding InvokeMethod + Console.WriteLine ("GenWriter: " + t + ", " + exactWriteMethod); + if (exactWriteMethod != null) { //if (imprecise) // ilg.Emit (OpCodes.Castclass, tUnder);