コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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);
 }