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)); }
public IPSubnet(System.String ipAndMaskBits) : this(IPUtil.ExtractIp(ipAndMaskBits), IPUtil.ExtractMaskBits(ipAndMaskBits)) { }