public override IdentifiedObject DeepCopy(IdentifiedObject copy = null) { if (copy == null) { copy = new DiscreteValue(this.GlobalId); } ((DiscreteValue)copy).value = this.value; return(base.DeepCopy(copy)); }
public override bool Equals(object obj) { if (base.Equals(obj)) { DiscreteValue x = (DiscreteValue)obj; return(x.value == this.value); } else { return(false); } }