// Is the method a weak event handler? public static bool IsWeakEventHandler(Delegate declaringType) { return(WehType.GetTypeInfo().IsAssignableFrom(declaringType.GetMethodInfo().DeclaringType.GetTypeInfo())); }
// Is the method a weak event handler? public static bool IsWeakEventHandler(Delegate declaringType) { return(WehType.IsAssignableFrom(declaringType.Method.DeclaringType)); }