/** * Need a better way to do it * * private static void SubstractNetwork(ProgramContext ac) { * * IEnumerable<IPNetwork> result = null; * if (!IPNetwork.TrySubstractNetwork(ac.Networks, ac.SubstractNetwork, out result)) { * Console.WriteLine("Unable to substract subnet from these networks"); * } * * foreach (IPNetwork ipnetwork in result.OrderBy( s => s.ToString() )) { * Console.WriteLine("{0}", ipnetwork); * //Program.PrintNetwork(ac, ipnetwork); * } * } **/ private static void WideSupernetNetworks(ProgramContext ac) { IPNetwork widesubnet = null; if (!IPNetwork.TryWideSubnet(ac.Networks, out widesubnet)) { Console.WriteLine("Unable to wide subnet these networks"); } Program.PrintNetwork(ac, widesubnet); }