public static IP operator ~(IP ip1) { if (IP.isNull(ip1)) { return(null); } byte[] bytes = new byte[4]; for (int i = 0; i < 4; i++) { bytes[i] = (byte)(~ip1.Ip[i]); } return(new IP(bytes)); }