예제 #1
0
        public override int CompareTo(object obj)
        {
            if (obj == null)
            {
                return(1);
            }
            MultipleOperation other = obj as MultipleOperation;

            return(this.m_props.Count() - other.m_props.Count());
        }
예제 #2
0
        // override object.Equals
        public override bool Equals(object obj)
        {
            if (obj == null || GetType() != obj.GetType())
            {
                return(false);
            }

            MultipleOperation other = obj as MultipleOperation;

            return
                (other.m_props.Count() == this.m_props.Count() &&
                 other.m_props.TrueForAll(p => this.m_props.Contains(p)));
        }