Here I have a static reference the ranges I need to check:
private static List Ip_Range = new List() { \"12.144.86.0/23\",
For start, you should use that:
IPNetwork ipnetwork = IPNetwork.Parse("192.168.168.100/29"); Console.WriteLine("CIDR: {0}", ipnetwork.Cidr);
Output
CIDR: 29