public static Range <IPAddress> GetBounds(Ip ip) { var x = ReadIpAddress(ip.Parser); var y = ReadIpAddress(ip.Parser); return(new Range <IPAddress>(ip.Comparer, ip.Min(x, y), ip.Max(x, y), RangeType.Strict)); }