示例#1
0
        public bool Equals(AnnotationSet other)
        {
            var result = Count == other.Count;

            if (result)
            {
                for (var i = 0; i < Count; i++)
                {
                    result &= this[i].Equals(other[i]);
                }
            }

            return(result);
        }
示例#2
0
        public bool Equals(AnnotationSet other)
        {
            if (other == null)
            {
                return(false);
            }

            if (Count != other.Count)
            {
                return(false);
            }

            for (var i = 0; i < Count; i++)
            {
                if (!this[i].Equals(other[i]))
                {
                    return(false);
                }
            }

            return(true);
        }