public int CompareTo(object obj) { MethodInvokerAction other = (MethodInvokerAction)obj; int nResult = 0; // First, the Execute delegate nResult = DelegateExecuteString.CompareTo(other.DelegateExecuteString); if (nResult != 0) { return(nResult); } // Second, the Update delegate nResult = DelegateUpdateString.CompareTo(other.DelegateUpdateString); if (nResult != 0) { return(nResult); } // Equal, then return(0); }
public override bool Equals(object obj) { MethodInvokerAction other = (MethodInvokerAction)obj; return((_delegateExecute.Equals(other._delegateExecute)) && (_delegateUpdate.Equals(other._delegateUpdate))); }