Пример #1
0
 public Operator(Operator another)
 {
     if (another.Relation != null)
     {
         relation = (string)another.Relation.Clone();
     }
 }
Пример #2
0
        public override bool Equals(object o)
        {
            if (o == null || GetType() != o.GetType())
            {
                return false;
            }

            Operator other = new Operator((Operator)o);

            if (this.Relation != null)
            {
                if (!this.Relation.Equals(other.Relation))
                {
                    return false;
                }
            }

            return true;
        }