public DualCidrBlock Parse(string ip4CidrBlockString, string ip6CidrBlockString) { Ip4CidrBlock ip4CidrBlock = _ip4CidrBlockParser.Parse(ip4CidrBlockString); Ip6CidrBlock ip6CidrBlock = _ip6CidrBlockParser.Parse(ip6CidrBlockString); return(new DualCidrBlock(ip4CidrBlock, ip6CidrBlock)); }
//"ip6" ":" ip6-network [ ip6-cidr-length ] public Term Parse(string mechanism, Qualifier qualifier, string arguments) { string[] splits = arguments.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); Ip6Addr ipAddress = _ip6AddrParser.Parse(splits.ElementAtOrDefault(0)); Ip6CidrBlock cidrBlock = _cidrBlockParser.Parse(splits.ElementAtOrDefault(1)); return(new Ip6(mechanism, qualifier, ipAddress, cidrBlock)); }