Esempio n. 1
0
        public void Use_the_parameter_constructor()
        {
            var fullName = new FullNameImmutable("John", "Q", "Public");

            Console.WriteLine("First: " + fullName.First);
            Console.WriteLine("Middle: " + fullName.Middle);
            Console.WriteLine("Last: " + fullName.Last);
        }
Esempio n. 2
0
        public void Still_have_a_parameterless_constructor()
        {
            var fullName = new FullNameImmutable();

            Console.WriteLine("First: " + fullName.First);
            Console.WriteLine("Middle: " + fullName.Middle);
            Console.WriteLine("Last: " + fullName.Last);
        }