protected override bool Equals(SelectableData <Button> obj) { var that = (ButtonData)obj; if (that == null) { return(false); } if (this.onClick.GetPersistentEventCount() == that.onClick.GetPersistentEventCount()) { for (int i = 0; i < onClick.GetPersistentEventCount(); ++i) { if (onClick.GetPersistentMethodName(i) != that.onClick.GetPersistentMethodName(i)) { return(false); } //if (onClick.GetPersistentTarget(i) != that.onClick.GetPersistentTarget(i)) //{ // return false; //} } return(true); } else { return(false); } }
protected abstract bool Equals(SelectableData <S> data);