예제 #1
0
        public bool ValueEquals(Shape other)
        {
            if (Count != other.Count)
            {
                return(false);
            }

            return(_annotations.ValueEquals(other._annotations));
        }
예제 #2
0
        public bool ValueEquals(Annotation <TOffset> other)
        {
            if (other == null)
            {
                return(false);
            }

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

            if (!IsLeaf && !_children.ValueEquals(other._children))
            {
                return(false);
            }

            return(_fs.ValueEquals(other._fs) && _optional == other._optional && Range == other.Range);
        }