Example #1
0
        public override IdentifiedObject DeepCopy(IdentifiedObject copy = null)
        {
            if (copy == null)
            {
                copy = new DiscreteValue(this.GlobalId);
            }

            ((DiscreteValue)copy).value = this.value;
            return(base.DeepCopy(copy));
        }
Example #2
0
 public override bool Equals(object obj)
 {
     if (base.Equals(obj))
     {
         DiscreteValue x = (DiscreteValue)obj;
         return(x.value == this.value);
     }
     else
     {
         return(false);
     }
 }