示例#1
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add(list.RandomString());
            list.Remove(list.RandomString());
        }
示例#2
0
        static void Main(string[] args)
        {
            RandomList randList = new RandomList();

            randList.Add("A");
            randList.Add("B");
            randList.Add("C");
            randList.Add("D");
            Console.WriteLine($"List content: {string.Join(", ", randList)}");

            Console.WriteLine(new string('-', 20));


            Console.WriteLine($"List count: {randList.Count}");
            Console.WriteLine($"Removed string: {randList.RandomString()}");
            Console.WriteLine($"List count: {randList.Count}");

            Console.WriteLine(new string('-', 20));

            Console.WriteLine($"List content: {string.Join(", ", randList)}");

            Console.WriteLine(new string('-', 20));

            Console.WriteLine($"List count: {randList.Count}");
            Console.WriteLine($"Removed string: {randList.RandomString()}");
            Console.WriteLine($"List count: {randList.Count}");

            Console.WriteLine(new string('-', 20));


            Console.WriteLine($"List content: {string.Join(", ", randList)}");
        }
示例#3
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add("Ivan");
            list.RandomString();
        }
示例#4
0
        static void Main()
        {
            string[]   colection = new[] { "pesho", "gosho", "stoian" };
            RandomList rl        = new RandomList(colection);

            Console.WriteLine(rl.RandomString());
        }
示例#5
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add("str0");
            list.Add("str1");
            list.Add("str2");
            list.Add("str3");
            list.Add("str4");
            list.Add("str5");
            list.Add("str6");
            list.Add("str7");
            list.Add("str8");
            list.Add("str9");
            list.Add("str10");
            list.Add("str11");

            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
            Console.WriteLine(list.RandomString());
        }
示例#6
0
        static void Main(string[] args)
        {
            RandomList rand = new RandomList();

            rand.AddRange(new[] { "Peshi", "Mishi", "Goshi" });

            Console.WriteLine(rand.RandomString());
        }
示例#7
0
        static void Main(string[] args)
        {
            RandomList random = new RandomList();

            Console.WriteLine(random.RandomString(new List <string> {
                "vladi", "gogo", "rali"
            }));
        }
示例#8
0
        private static void Main()
        {
            RandomList randomList = new RandomList {
                "1", "2", "3", "4", "5"
            };

            Console.WriteLine(randomList.RandomString());
        }
示例#9
0
        static void Main(string[] args)
        {
            RandomList mylist = new RandomList();

            mylist.Add("adasdas");
            mylist.Add("asdas");
            mylist.Add("hfgh");
            mylist.RandomString();
        }
示例#10
0
        public static void Main()
        {
            var customList = new RandomList()
            {
                "Petio", "Gosho", "Apostol Popov", "Kircata"
            };

            Console.WriteLine(customList.RandomString());
        }
示例#11
0
文件: StartUp.cs 项目: stilyssk/C-OOP
        public static void Main(string[] args)
        {
            RandomList randomList = new RandomList();

            randomList.Add("gosho");
            randomList.Add("kircho");
            randomList.Add("pesho");
            Console.WriteLine(randomList.RandomString());
        }
        public static void Main(string[] args)
        {
            RandomList randomList = new RandomList()
            {
                "Pesho", "Ivan", "Gosho"
            };

            Console.WriteLine(randomList.RandomString());
        }
示例#13
0
        static void Main(string[] args)
        {
            RandomList rnd = new RandomList(
                new string[] { "One", "Two", "Three", "Pesho", "Gosho", "Stamat" });

            Console.WriteLine(rnd.ToString());
            Console.WriteLine(rnd.RandomString());
            Console.WriteLine(rnd.Count);
        }
示例#14
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add("metko");
            list.Add("rifko");

            Console.WriteLine(list.RandomString());
        }
示例#15
0
        static void Main(string[] args)
        {
            var myList = new RandomList();

            myList.Add("Pesho");
            myList.Add("Gosho");
            myList.Add("Dimitrichko");
            Console.WriteLine(myList.RandomString());
        }
        public static void Main()
        {
            RandomList rand = new RandomList();

            rand.AddRange(new List <string> {
                "pesho", "ivan", "joro"
            });
            Console.WriteLine(rand.RandomString());
        }
示例#17
0
        public static void Main(string[] args)
        {
            var list = new RandomList {
                "Gosho", "PESHO", "Misho", "TOSHO"
            };

            Console.WriteLine(list.RandomString());
            Console.WriteLine(string.Join(" ", list));
        }
示例#18
0
        static void Main()
        {
            var list = new RandomList();

            list.Add("dog");
            list.Add("cat");
            list.Add("cow");
            Console.WriteLine(list.RandomString());
        }
示例#19
0
        static void Main(string[] args)
        {
            var myList = new RandomList()
            {
                "pizza", "spaghetti", "bread"
            };

            Console.WriteLine($"Today im gonna eat {myList.RandomString()}");
        }
示例#20
0
        static void Main(string[] args)
        {
            RandomList rand = new RandomList()
            {
                "pesho", "gosho", "veso"
            };

            Console.WriteLine(rand.RandomString());
            Console.WriteLine(string.Join(" ", rand));
        }
示例#21
0
        static void Main(string[] args)
        {
            List <string> strList = new List <string>  {
                "a", "aa", "bbbbb"
            };
            RandomList RandList = new RandomList();

            RandList.RandomString(strList);
            Console.WriteLine(string.Join(" ", strList));
        }
示例#22
0
        public static void Main(string[] args)
        {
            RandomList randomList = new RandomList();

            randomList.AddRange(new List <string>()
            {
                "1", "2", "3", "4"
            });
            Console.WriteLine(randomList.RandomString());
        }
示例#23
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add("Plamen");
            list.Add("Angle");
            list.Add("Sine");

            Console.WriteLine(list.RandomString());
        }
        public static void Main(string[] args)
        {
            var randomList = new RandomList();

            randomList.Add("Gosho");
            randomList.Add("Pesho");
            randomList.Add("Tosho");

            Console.WriteLine(randomList.RandomString());
        }
示例#25
0
        public static void Main(string[] args)
        {
            var randomList = new RandomList();

            randomList.Add("Ivan");
            randomList.Add("Petar");
            randomList.Add("Stafan");

            Console.WriteLine(randomList.RandomString());
        }
示例#26
0
        static void Main(string[] args)
        {
            var randomList = new RandomList();

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

            Console.WriteLine(randomList.RemoveRandom());
        }
示例#27
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList()
            {
                "1", "2", "3", "4", "5"
            };

            Console.WriteLine(list.RandomString());
            Console.WriteLine(string.Join(" ", list));
        }
示例#28
0
        public static void Main()
        {
            var randomList = new RandomList();

            randomList.Add("one");
            randomList.Add("two");
            randomList.Add("three");

            Console.WriteLine(randomList.RandomString());
        }
示例#29
0
        public static void Main()
        {
            var randomList = new RandomList();

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

            Console.WriteLine(randomList.RandomString());
        }
示例#30
0
        static void Main(string[] args)
        {
            RandomList list = new RandomList();

            list.Add("First");
            list.Add("Second");
            list.Add("Third");
            list.Add("Fourth");
            list.Add("Fifth");
            Console.WriteLine(list.RandomString());
        }