コード例 #1
0
 public bool IsMatch(object otherObject, MethodInfo otherMethod)
 {
     return(WeakActionStructUtility.IsMatch(_objectRef.Target, _method,
                                            otherObject, otherMethod));
 }
コード例 #2
0
 public bool Invoke(object[] args)
 {
     return(WeakActionStructUtility.Invoke(ref _objectRef, _method, args));
 }
コード例 #3
0
 public bool Equals(WeakActionStruct <T1, T2> other)
 {
     return(WeakActionStructUtility.IsMatch(_objectRef.Target, _method,
                                            other._objectRef.Target, other._method));
 }
コード例 #4
0
 public WeakActionStruct(Action <T1, T2> listener)
 {
     WeakActionStructUtility.Init(listener.Target, listener.GetMethodInfoEx(), out _objectRef, out _method);
 }