public void Handle(object sender, MethodChangedEventArgs eventArgs) { if (_weakReference.TryGetTarget(out var handler)) { handler(sender, eventArgs); } }
public static string ToStringAlt(this MethodChangedEventArgs methodChangedEventArgs) { if (methodChangedEventArgs == null) { return("null"); } return($"({methodChangedEventArgs.ToString()} (MethodName = ({methodChangedEventArgs.MethodName}), ArgumentsPredicate.GetHashCode() = ({methodChangedEventArgs.ArgumentsPredicate.GetHashCode()})))"); }
public static string ToStringAlt(this MethodChangedEventArgs methodChangedEventArgs) { if (methodChangedEventArgs == null) { return("(null)"); } return($"(MethodChangedEventArgs (MethodName = '{methodChangedEventArgs.MethodName}', ArgumentsPredicate.GetHashCode() = {methodChangedEventArgs.ArgumentsPredicate.GetHashCode()})"); }