public static MethodInfo GetMethodInfo (this Delegate del) { if (del == null) throw new ArgumentNullException ("del"); return del.Method; }