示例#1
0
        static void Main(string[] args)
        {
            LINQQuestions list  = new LINQQuestions();
            List <string> words = new List <string>()
            {
                "the", "bike", "this", "it", "tenth", "mathematics"
            };
            List <string> names = new List <string>()
            {
                "Mike", "Brad", "Nevin", "Ian", "Mike"
            };

            List <string> classGrades = new List <string>()
            {
                "80,100,92,89,65", "93,81,78,84,69", "73,88,83,99,64", "98,100,66,74,55"
            };

            list.GetAverage(classGrades);
        }
示例#2
0
        static void Main(string[] args)
        {
            LINQQuestions list = new LINQQuestions();

            List <string> words = new List <string>()
            {
                "the", "bike", "this", "it", "tenth", "mathematics"
            };
            List <string> THwords = list.ReturnSubstringFromList(words);

            List <string> names = new List <string>()
            {
                "Mike", "Brad", "Nevin", "Ian", "Mike"
            };
            List <string> NameList = list.GetNameList(names);

            list.GetCalculatesClassGradeAverage();

            list.GetStringOfLetters();

            Console.ReadLine();
        }