protected Analog(Analog analog) : base(analog) { CurrentValue = analog.CurrentValue; MaxValue = analog.MaxValue; MinValue = analog.MinValue; NormalValue = analog.NormalValue; SignalType = analog.SignalType; ScalingFactor = analog.ScalingFactor; Deviation = analog.Deviation; }
public override bool Equals(object obj) { if (base.Equals(obj)) { Analog x = (Analog)obj; return((x.currentValue == this.currentValue && x.maxValue == this.maxValue && x.minValue == this.minValue && x.normalValue == this.normalValue && x.signalType == this.signalType) && x.scalingFactor == this.scalingFactor && x.deviation == this.deviation); } else { return(false); } }