Example #1
0
        /// <summary>
        /// Does this network contain the given ip address
        /// </summary>
        /// <param name="ip">ip address to check</param>
        /// <returns></returns>
        public bool Contains(IPAddress ip)
        {
            uint ipUint = ip.ToUint32();

            return(ipUint >= NetworkID.ToUint32() && ipUint <= BroadcastIP.ToUint32());
        }