Exemple #1
0
        static void Main(string[] args)
        {
            var MinAdress = new Adress();

            MinAdress.StreetNumber = "33";
            MinAdress.Street       = "Långa gatan";
            MinAdress.City         = "Sundsvall";
            MinAdress.ZipCode      = "111 22";



            Console.WriteLine("Street:            " + MinAdress.Street);
            Console.WriteLine("StreetNumber:      " + MinAdress.StreetNumber);
            Console.WriteLine("City:              " + MinAdress.City);
            Console.WriteLine("Zipcode:           " + MinAdress.ZipCode);
            Console.WriteLine("FullStreet:        " + MinAdress.GetFullStreet());
            Console.WriteLine("");
            Console.WriteLine("FullStreet2:       " + MinAdress.FullStreet);

            MinAdress.SetZipCode("222 11");
            MinAdress.SetZipCode("Hello");
            MinAdress.SetZipCode("12345");
            MinAdress.SetZipCode("222");


            Console.WriteLine("Zipcode:           " + MinAdress.ZipCode);
        }