示例#1
0
        static void Main(string[] args)
        {
            PeselValidator pesel = new PeselValidator();

            try
            {
                pesel.ShowPesel("74062109896");
                pesel.ShowPeselFromFile();
            }
            catch (Exception e)
            {
                Console.WriteLine("Nieprawidłowy numer pesel : " + e.Message);
            }

            Console.Read();
        }
示例#2
0
        static void Main(string[] args)
        {
            PeselValidator pesel = new PeselValidator();

            try
            {
                pesel.ShowPesel("74062109896");
                pesel.ShowPeselFromFile();
            }
            catch (Exception e)
            {
                Console.WriteLine("Nieprawidłowy numer pesel : " + e.Message);
            }

            Console.Read();
        }