예제 #1
0
파일: MainApp.cs 프로젝트: sidiqahmed/GoF
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        public static void Main()
        {
            // Create and run the African animal world
            AnimalWorld world = new AnimalWorld(Continent.Africa);

            world.RunFoodChain();

            // Create and run the American animal world
            world = new AnimalWorld(Continent.America);
            world.RunFoodChain();

            // Wait for user input
            Console.ReadKey();
        }
예제 #2
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        public static void Main()
        {
            // Create and run the African animal world
            var africa = new AnimalWorld <Africa>();

            africa.RunFoodChain();

            // Create and run the American animal world
            var america = new AnimalWorld <America>();

            america.RunFoodChain();

            // Wait for user input
            Console.ReadKey();
        }
예제 #3
0
        /// <summary>
        /// Entry point into console application.
        /// </summary>
        public static void Main()
        {
            // Create and run the African animal world
            AnimalWorld world = new AnimalWorld(Continent.Africa);
            world.RunFoodChain();

            // Create and run the American animal world
            world = new AnimalWorld(Continent.America);
            world.RunFoodChain();

            // Wait for user input
            Console.ReadKey();
        }