public override bool Equals(object obj) { SwitchDevice sd = obj as SwitchDevice; if (sd == null) { return(false); } return(this.switchID == sd.switchID); }
public SwitchDevice(SwitchDevice orig) { SwitchID = orig.SwitchID; SwitchValue = orig.SwitchValue; SwitchDate = orig.SwitchDate; }