static void Main(string[] args)
        {
            Person person = new Person("David", "Barnes", 25);

            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());

            Console.WriteLine("Demo to show how branching works");
            Console.WriteLine("Here is another line");

            Console.WriteLine();
            Console.WriteLine("Different stuff");
            Console.WriteLine("Moar. All the different stuff");
        }
        /// <summary>
        /// Main.
        /// </summary>
        /// <param name="args">Command-Line Args</param>
        static void Main(string[] args)
        {
            Person person = new Person("Aa", "Aaa", 20);
            Person personB = new Person("Bb", "Bbb", 300);
            Person personC = new Person("Cc", "Ccc", 5);

            person.PrintFullName();
            personB.PrintFullName();
            personC.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.AddPerson(person);
            personCollection.AddPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.GetPersonCollectionToString());
        }
Beispiel #3
0
        static void Main(string[] args)
        {
            Person person = new Person("John", "Harvey", 25);

            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());
        }
        static void Main(string[] args)
        {
            Person person = new Person("David", "Barnes", 25);

            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.addPerson(person);

            personCollection.addPerson(new Person("Not", "DeclaredFirst", 34));

            Console.WriteLine(personCollection.getPersonCollectionToString());

            Console.WriteLine("Branchsona! Ziodyne!");

            Console.WriteLine("");
            Console.WriteLine("Branch Mage used Branchraga.");
        }
Beispiel #5
0
        static void Main(string[] args)
        {
            Person person = new Person("Andrejs", "Tomsons", 23);
            Person person2 = new Person("Joe", "Somebody", 85);

            person.PrintFullName();
            person2.PrintFullName();
            person.PrintFullName();

            PersonCollection personCollection = new PersonCollection();

            personCollection.AddPerson(person);
            personCollection.AddPerson(new Person("Not", "Declared First", 34));

            Console.WriteLine(personCollection.GetPersonCollectionToString());
            Console.WriteLine("Branching demo");
            Console.WriteLine("Another line");

            Console.WriteLine("Different things");
            Console.WriteLine("More Different things");
        }