private static void SubnetNetworks(ProgramContext ac) { BigInteger i = 0; foreach (IPNetwork ipnetwork in ac.Networks) { i++; int networkLength = ac.Networks.Length; IPNetworkCollection ipnetworks = null; if (!IPNetwork.TrySubnet(ipnetwork, ac.SubnetCidr, out ipnetworks)) { Console.WriteLine("Unable to subnet ipnetwork {0} into cidr {1}", ipnetwork, ac.SubnetCidr); Program.PrintSeparator(networkLength, i); continue; } Program.PrintNetworks(ac, ipnetworks, ipnetworks.Count); Program.PrintSeparator(networkLength, i); } }