示例#1
0
 public static IPAddressRange fromString(System.String range)
 {
     if (IPUtil.IsRange(range))
     {
         try
         {
             return(new IPSubnet(IPUtil.ExtractIp(range), IPUtil.ExtractMaskBits(range)));
         }
         catch (System.Exception e)
         {
             SupportClass.WriteStackTrace(e, Console.Error);
         }
     }
     return(new IPAddressRange(range, range));
 }
示例#2
0
 public IPSubnet(System.String ipAndMaskBits) : this(IPUtil.ExtractIp(ipAndMaskBits), IPUtil.ExtractMaskBits(ipAndMaskBits))
 {
 }