private object m_target;
private IntPtr method;
private IntPtr delegate_trampoline;
- private IntPtr rgctx;
+ private IntPtr extra_arg;
private IntPtr method_code;
private MethodInfo method_info;
if (a == null)
return b;
+ if (b == null)
+ return a;
+
+ if (a.GetType () != b.GetType ())
+ throw new ArgumentException (Locale.GetText ("Incompatible Delegate Types. First is {0} second is {1}.", a.GetType ().FullName, b.GetType ().FullName));
+
return a.CombineImpl (b);
}