Содержание
- 2. Задача Создать метод для фильтрации массивов целых чисел, но с возможностью указания алгоритма, применяемого для фильтрации.
- 3. Использование делегатов public class Common { public delegate bool IntFilter(int i); public static int[] FilterArrayOfInts(int[] ints,
- 4. Использование делегатов class Program { public static bool IsOdd(int i) { return ((i & 1) ==
- 5. Использование анонимных методов int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9,
- 6. Использование лямбда-выражений (параметр1, параметр2, параметр3) => выражение (параметр1, параметр2, параметр3) => { оператор1; оператор2; оператор3; return(тип_возврата_лямбда_выражения);
- 7. Использование лямбда-выражений x => x x => x.Length>0 s => s.Length (x,y) => x==y (x,y) =>
- 8. Использование лямбда-выражений int[] nums = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
- 9. LINQ (Language Integrated Query) По большей части LINQ ориентирован на запросы — будь то запросы, возвращающие
- 10. LINQ LINQ to Objects: применяется для работы с массивами и коллекциями LINQ to Entities: используется при
- 11. LINQ (Language Integrated Query) string[] numbers = { "40", "2012", "176", "5" }; // Преобразуем массив
- 12. LINQ (Language Integrated Query) string[] numbers = { "40", "2012", "176", "5" }; // Преобразуем массив
- 14. Ленивые (отложенные) вычисления Ленивые вычисления (англ. lazy evaluation, также отложенные вычисления) — применяемая в некоторых языках
- 15. Метод Enumerable.Range(Int32, Int32) public static System.Collections.Generic.IEnumerable Range (int start, int count); IEnumerable mas = Enumerable.Range(2,10); foreach
- 16. Enumerable.Repeat (TResult, Int32) public static System.Collections.Generic.IEnumerable Repeat (TResult element, int count); IEnumerable strings = Enumerable.Repeat("I like
- 17. Enumerable.Concat (IEnumerable , IEnumerable ) public static System.Collections.Generic.IEnumerable Concat (this System.Collections.Generic.IEnumerable first, System.Collections.Generic.IEnumerable second);
- 18. Enumerable.Concat (IEnumerable , IEnumerable ) var mas1 = Enumerable.Range(1,10); var mas2 = Enumerable.Repeat(1, 10); var mas_union
- 19. Метод Enumerable.Where public static System.Collections.Generic.IEnumerable Where (this System.Collections.Generic.IEnumerable source, Func predicate); var mas1 = Enumerable.Range(1,10); var
- 20. Метод Enumerable.Where public static System.Collections.Generic.IEnumerable Where (this System.Collections.Generic.IEnumerable source, Func predicate); int[] numbers = { 0,
- 21. Метод Enumerable.Count public static int Count (this System.Collections.Generic.IEnumerable source); string[] fruits = { "apple", "banana", "mango",
- 22. Метод Enumerable.Count public static int Count (this System.Collections.Generic.IEnumerable source, Func predicate); string[] fruits = { "apple",
- 23. Метод Enumerable.First public static TSource First (this System.Collections.Generic.IEnumerable source); int[] numbers = { 9, 34, 65,
- 24. Метод Enumerable.First public static TSource First (this System.Collections.Generic.IEnumerable source, Func predicate); int[] numbers = { 9,
- 25. Метод Enumerable.FirstOrDefault public static TSource FirstOrDefault (this System.Collections.Generic.IEnumerable source, Func predicate); string[] names = { "Hartono,
- 26. Метод Enumerable.Last int[] numbers = { 9, 34, 65, 92, 87, 435, 3, 54, 83, 23,
- 27. Метод Enumerable.LastOrDefault string[] fruits = { }; string last = fruits.LastOrDefault(); Console.WriteLine( String.IsNullOrEmpty(last) ? " "
- 28. Метод Enumerable.LastOrDefault double last40 = numbers.LastOrDefault(n => Math.Round(n) == 40.0); Console.WriteLine( "The last number that rounds
- 29. Метод Enumerable.Sum public static float Sum (this System.Collections.Generic.IEnumerable source); List numbers = new List { 43.68F,
- 30. Метод Enumerable.Sum public static float Sum (this System.Collections.Generic.IEnumerable source, Func selector);
- 31. Метод Enumerable.Sum List packages = new List { new Package { Company = "Vineyard", Weight =
- 32. Метод Enumerable.Average public static int Average (this System.Collections.Generic.IEnumerable source); List grades = new List { 78,
- 33. Метод Enumerable.Average public static double Average (this System.Collections.Generic.IEnumerable source, Func selector); string[] numbers = { "10007",
- 34. Метод Enumerable.Min public static decimal Min (this System.Collections.Generic.IEnumerable source); double[] doubles = { 1.5E+104, 9E+103, -2E+103
- 35. Метод Enumerable.Min public static TResult Min (this System.Collections.Generic.IEnumerable source, Func selector); double[] doubles = { 1.5E+104,
- 36. Метод Enumerable.Max public static decimal Max (this System.Collections.Generic.IEnumerable source); double[] doubles = { 1.5E+104, 9E+103, -2E+103
- 37. Метод Enumerable.Max public static TResult Max (this System.Collections.Generic.IEnumerable source, Func selector); double[] doubles = { 1.5E+104,
- 38. Метод ElementAt public static TSource ElementAt (this System.Collections.Generic.IEnumerable source, int index);
- 39. Метод ElementAt string[] names = { "Hartono, Tommy", "Adams, Terry", "Andersen, Henriette Thaulow", "Hedlund, Magnus", "Ito,
- 40. Метод ElementAtOrDefault public static TSource ElementAtOrDefault (this System.Collections.Generic.IEnumerable source, int index);
- 41. Метод ElementAtOrDefault int index = 20; string name = names.ElementAtOrDefault(index); Console.WriteLine("The name chosen at index {0}
- 42. Метод Reverse public static System.Collections.Generic.IEnumerable Reverse (this System.Collections.Generic.IEnumerable source);
- 43. Метод Reverse char[] apple = { 'a', 'p', 'p', 'l', 'e' }; char[] reversed = apple.Reverse().ToArray();
- 44. public static System.Linq.IOrderedEnumerable OrderBy (this System.Collections.Generic.IEnumerable source, Func keySelector); Метод Enumerable.OrderBy
- 45. public static void OrderByEx1() { Pet[] pets = { new Pet { Name="Barley", Age=8 }, new
- 46. public static System.Linq.IOrderedEnumerable OrderBy (this System.Collections.Generic.IEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.OrderBy
- 47. public static System.Linq.IOrderedEnumerable OrderByDescending (this System.Collections.Generic.IEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.OrderByDescending
- 48. public static System.Linq.IOrderedEnumerable OrderByDescending (this System.Collections.Generic.IEnumerable source, Func keySelector); Метод Enumerable.OrderByDescending
- 49. public static System.Linq.IOrderedEnumerable ThenBy (this System.Linq.IOrderedEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.ThenBy
- 50. public static System.Linq.IOrderedEnumerable ThenBy (this System.Linq.IOrderedEnumerable source, Func keySelector); Метод Enumerable.ThenBy
- 51. string[] fruits = { "grape", "passionfruit", "banana", "mango", "orange", "raspberry", "apple", "blueberry" }; IEnumerable query =
- 52. public class CaseInsensitiveComparer : IComparer { public int Compare(string x, string y) { return string.Compare(x, y,
- 53. public static void ThenByDescendingEx1() { string[] fruits = { "apPLe", "baNanA", "apple", "APple", "orange", "BAnana", "ORANGE",
- 54. Метод Take public static System.Collections.Generic.IEnumerable Take (this System.Collections.Generic.IEnumerable source, int count);
- 55. Метод Take int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable topThreeGrades
- 56. Метод TakeWhile public static System.Collections.Generic.IEnumerable TakeWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 57. Метод TakeWhile string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape" }; IEnumerable query =
- 58. Метод TakeWhile public static System.Collections.Generic.IEnumerable TakeWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 59. Метод TakeWhile string[] fruits = { "apple", "passionfruit", "banana", "mango", "orange", "blueberry", "grape", "strawberry" }; IEnumerable
- 60. Метод Skip public static System.Collections.Generic.IEnumerable Skip (this System.Collections.Generic.IEnumerable source, int count);
- 61. Метод Skip int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable lowerGrades
- 62. Метод SkipWhile public static System.Collections.Generic.IEnumerable SkipWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 63. Метод SkipWhile int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable lowerGrades
- 64. Метод SkipWhile public static System.Collections.Generic.IEnumerable SkipWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 65. Метод SkipWhile int[] amounts = { 5000, 2500, 9000, 8000, 6500, 4000, 1500, 5500 }; IEnumerable
- 66. Метод SkipLast public static System.Collections.Generic.IEnumerable SkipLast (this System.Collections.Generic.IEnumerable source, int count);
- 67. Метод Select public static System.Collections.Generic.IEnumerable Select (this System.Collections.Generic.IEnumerable source, Func selector);
- 68. Метод Select string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape" }; var query =
- 69. Метод Select public static System.Collections.Generic.IEnumerable Select (this System.Collections.Generic.IEnumerable source, Func selector);
- 70. Метод Select IEnumerable squares = Enumerable.Range(1, 10).Select(x => x * x); foreach (int num in squares)
- 71. Метод SelectMany public static System.Collections.Generic.IEnumerable SelectMany (this System.Collections.Generic.IEnumerable source, Func > selector);
- 72. Метод SelectMany PetOwner[] petOwners = { new PetOwner { Name="Higa, Sidney", Pets = new List {
- 73. Метод SelectMany IEnumerable query1 = petOwners.SelectMany(petOwner => petOwner.Pets); IEnumerable > query2 = petOwners.Select(petOwner => petOwner.Pets);
- 74. Метод SelectMany var query = petOwners .SelectMany(petOwner => petOwner.Pets, (petOwner, petName) => new { petOwner, petName
- 75. Метод Zip public static System.Collections.Generic.IEnumerable Zip (this System.Collections.Generic.IEnumerable first, System.Collections.Generic.IEnumerable second, Func resultSelector);
- 76. Метод Zip int[] numbers = { 1, 2, 3, 4 }; string[] words = { "one",
- 77. Метод Zip public static System.Collections.Generic.IEnumerable > Zip (this System.Collections.Generic.IEnumerable first, System.Collections.Generic.IEnumerable second);
- 78. Метод Disctinct public static System.Collections.Generic.IEnumerable Distinct (this System.Collections.Generic.IEnumerable source);
- 79. Метод Disctinct List ages = new List { 21, 46, 46, 55, 17, 21, 55, 55
- 80. Метод Disctinct public class Product : IEquatable { public string Name { get; set; } public
- 82. Скачать презентацию



![Использование анонимных методов int[] nums = { 1, 2, 3, 4, 5,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-4.jpg)


![Использование лямбда-выражений int[] nums = { 1, 2, 3, 4, 5, 6,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-7.jpg)


![LINQ (Language Integrated Query) string[] numbers = { "40", "2012", "176", "5"](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-10.jpg)
![LINQ (Language Integrated Query) string[] numbers = { "40", "2012", "176", "5"](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-11.jpg)







![Метод Enumerable.Where public static System.Collections.Generic.IEnumerable Where (this System.Collections.Generic.IEnumerable source, Func predicate); int[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-19.jpg)
![Метод Enumerable.Count public static int Count (this System.Collections.Generic.IEnumerable source); string[] fruits =](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-20.jpg)
![Метод Enumerable.Count public static int Count (this System.Collections.Generic.IEnumerable source, Func predicate); string[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-21.jpg)
![Метод Enumerable.First public static TSource First (this System.Collections.Generic.IEnumerable source); int[] numbers =](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-22.jpg)
![Метод Enumerable.First public static TSource First (this System.Collections.Generic.IEnumerable source, Func predicate); int[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-23.jpg)
![Метод Enumerable.FirstOrDefault public static TSource FirstOrDefault (this System.Collections.Generic.IEnumerable source, Func predicate); string[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-24.jpg)
![Метод Enumerable.Last int[] numbers = { 9, 34, 65, 92, 87, 435,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-25.jpg)
![Метод Enumerable.LastOrDefault string[] fruits = { }; string last = fruits.LastOrDefault(); Console.WriteLine(](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-26.jpg)





![Метод Enumerable.Average public static double Average (this System.Collections.Generic.IEnumerable source, Func selector); string[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-32.jpg)
![Метод Enumerable.Min public static decimal Min (this System.Collections.Generic.IEnumerable source); double[] doubles =](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-33.jpg)
![Метод Enumerable.Min public static TResult Min (this System.Collections.Generic.IEnumerable source, Func selector); double[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-34.jpg)
![Метод Enumerable.Max public static decimal Max (this System.Collections.Generic.IEnumerable source); double[] doubles =](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-35.jpg)
![Метод Enumerable.Max public static TResult Max (this System.Collections.Generic.IEnumerable source, Func selector); double[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-36.jpg)

![Метод ElementAt string[] names = { "Hartono, Tommy", "Adams, Terry", "Andersen, Henriette](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-38.jpg)



![Метод Reverse char[] apple = { 'a', 'p', 'p', 'l', 'e' };](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-42.jpg)

![public static void OrderByEx1() { Pet[] pets = { new Pet {](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-44.jpg)





![string[] fruits = { "grape", "passionfruit", "banana", "mango", "orange", "raspberry", "apple", "blueberry"](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-50.jpg)

![public static void ThenByDescendingEx1() { string[] fruits = { "apPLe", "baNanA", "apple",](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-52.jpg)

![Метод Take int[] grades = { 59, 82, 70, 56, 92, 98,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-54.jpg)

![Метод TakeWhile string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape"](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-56.jpg)

![Метод TakeWhile string[] fruits = { "apple", "passionfruit", "banana", "mango", "orange", "blueberry",](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-58.jpg)

![Метод Skip int[] grades = { 59, 82, 70, 56, 92, 98,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-60.jpg)

![Метод SkipWhile int[] grades = { 59, 82, 70, 56, 92, 98,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-62.jpg)

![Метод SkipWhile int[] amounts = { 5000, 2500, 9000, 8000, 6500, 4000,](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-64.jpg)


![Метод Select string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape"](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-67.jpg)



![Метод SelectMany PetOwner[] petOwners = { new PetOwner { Name="Higa, Sidney", Pets](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-71.jpg)



![Метод Zip int[] numbers = { 1, 2, 3, 4 }; string[]](/_ipx/f_webp&q_80&fit_contain&s_1440x1080/imagesDir/jpg/1183810/slide-75.jpg)




Знакомство с миром профессионального труда как одна из составляющих программы развития личности дошкольника
Вера моя крепка
Место физкультуры и спорта в моей жизни. Введение
Техническое регулирование деятельности предприятий и организаций нефтегазового комплекса
Азбука в загадках-добавлялках
Предпосылки создания Древнерусского Государства
Сельский туризм. Западный опыт. Общий обзор.
Reflection
Презентация на тему Начало создания колониальных империй
Загрязнение воздуха
Летняя математическая школа
Моря, омывающие берега России (8 класс)
Практика для студентов в отделе кадров
Родительское собрание: «Итоговая аттестация учащихся 11-х классов в 2011-2012 учебном году» 22 ноября 2011 г
О методических и организационно-технологических аспектах проведения ГИА-9 в новой форме в 2011-2012 г.г.Станченко С.В., заместитель д
Антикафе Чтец
Бизнес-проект по открытию предприятия по производству и реализации корпусной мебели
Нейтронные звезды
ОРГАНИЗАЦИОННАЯ СТРУКТУРА ПРЕДПРИЯТИЯ (ОРГАНИЗАЦИИ)
Презентация на тему Владимиро-Суздальское княжество (6 класс)
РЕЗУЛЬТАТЫ ПРОЕКТА«Настройка образовательных программ в российских вузах»(TUNING Educational Programmes in Russian HEIs)
Лето ягодное Часть 4
Хозяйство России
20170201_baykal_8_klass
HISTORICAL BACKGROUND OF THE UK (Ancient Britain
Учебно-методический комплект «ИСТОРИЯ РОССИИ 1945-2008 гг.»(Концептуальные основы курса.Авторский коллектив.)
Шенген визы: открой себе Европу
Языковой портфолио как инструмент рефлексивной самооценки учащихся