Increment() public static method

public static Increment ( byte bytes ) : byte[]
bytes byte
return byte[]
Ejemplo n.º 1
0
        public IEnumerator <IPAddress> GetEnumerator()
        {
            var first = Begin.GetAddressBytes();
            var last  = End.GetAddressBytes();

            for (var ip = first; Bits.LtECore(ip, last); ip = Bits.Increment(ip))
            {
                yield return(new IPAddress(ip));
            }
        }