Exemple #1
0
        static void Main()
        {
            RandomList randomList = new RandomList();

            randomList.Add("Ivan");
            randomList.Add("Test");
            randomList.Add("Pesho");

            Console.WriteLine(randomList.RemoveRandom());
        }
        static void Main()
        {
            var randomList = new RandomList <string>
            {
                "Ivan",
                "Test",
                "Pesho"
            };

            Console.WriteLine(randomList.RemoveRandom());
        }