Ejemplo n.º 1
0
        /// <summary>
        /// Tests Lists.cs
        /// </summary>
        public static void Lists()
        {
            Lists l = new Lists();

            l.CreateIntList();
            l.CreateStringList();
            l.CreateClassList();
            l.AddToList("this string added to string list");
            l.RemoveFromList(4);
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Single Responsability:");


            Student        student  = new Student("Dani", "Test");
            List <Student> students = new List <Student>();

            students = Lists <Student> .AddToList(students, student);

            Console.ReadLine();



            Console.WriteLine("Go to Single Responsability!");
            Console.WriteLine("Go to Single Responsability!");
            Console.WriteLine("Go to Single Responsability!");
            Console.ReadLine();
        }