Пример #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            PositionedVertexBase otherFaultVertex = obj as PositionedVertexBase;

            if (otherFaultVertex == null)
            {
                return(false);
            }

            // We deliberately replace and do not call the base class implementation
            return(Position.Equals(otherFaultVertex.Position));
        }
Пример #2
0
 protected PositionedVertexBase(PositionedVertexBase other) :
     base(other)
 {
 }