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()})))");
 }
예제 #3
0
 public static string ToStringAlt(this MethodChangedEventArgs methodChangedEventArgs)
 {
     if (methodChangedEventArgs == null)
     {
         return("(null)");
     }
     return($"(MethodChangedEventArgs (MethodName = '{methodChangedEventArgs.MethodName}', ArgumentsPredicate.GetHashCode() = {methodChangedEventArgs.ArgumentsPredicate.GetHashCode()})");
 }