コード例 #1
0
ファイル: Shape.cs プロジェクト: ermshiperete/machine
        public bool ValueEquals(Shape other)
        {
            if (Count != other.Count)
            {
                return(false);
            }

            return(_annotations.ValueEquals(other._annotations));
        }
コード例 #2
0
ファイル: Annotation.cs プロジェクト: ermshiperete/machine
        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);
        }