Beispiel #1
0
        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);
            }
        }
Beispiel #2
0
 protected abstract bool Equals(SelectableData <S> data);