Пример #1
0
        /// <summary>
        /// Two rows are equal if they contain the same pairs in the same order.
        /// </summary>
        public override bool Equals(Object o)
        {
            if (!(o is ExpandedRow))
            {
                return(false);
            }
            ExpandedRow that = (ExpandedRow)o;

            return(Pairs.Equals(that.Pairs));
        }
Пример #2
0
        /// <summary>
        /// Two rows are equal if they contain the same pairs in the same order.
        /// </summary>
        override public bool Equals(Object o)
        {
            if (!(o is ExpandedRow))
            {
                return(false);
            }
            ExpandedRow that = (ExpandedRow)o;

            return(Pairs.Equals(that.Pairs) && IsReversed == that.IsReversed);
        }
Пример #3
0
 internal bool IsEquivalent(List <ExpandedPair> otherPairs)
 {
     return(Pairs.Equals(otherPairs));
 }