static void Main(string[] args) { var ipaddres = new CheckValue(); ipaddres.ValueChecker("192.0.2.235"); Console.WriteLine(); ipaddres.ValueChecker("0xC0.0x00.0x02.0xEB"); Console.WriteLine(); ipaddres.ValueChecker("0300.0000.0002.0353"); Console.WriteLine(); ipaddres.ValueChecker("0xC00002EB"); Console.WriteLine(); ipaddres.ValueChecker("3221226219"); Console.WriteLine(); ipaddres.ValueChecker("030000001353"); Console.WriteLine(); ipaddres.ValueChecker("1231edksajd1312"); }