/// <summary> /// Check if a Tranport Address belongs to the same network as this one. /// </summary> public override bool IsSameNetwork(TransportAddress ta) { if (ta == null || GetType() != ta.GetType()) { return(false); } SerialTransportAddress t = (SerialTransportAddress)ta; return(serialport == t.serialport); }
/// <summary> /// Check if a Tranport Address belongs to the same network as this one. /// </summary> public override bool IsSameNetwork(TransportAddress ta) { if (ta == null || GetType() != ta.GetType()) return false; SerialTransportAddress t = (SerialTransportAddress)ta; return (serialport == t.serialport); }