Содержание
- 2. Метод ElementAt public static TSource ElementAt (this System.Collections.Generic.IEnumerable source, int index);
- 3. Метод ElementAt string[] names = { "Hartono, Tommy", "Adams, Terry", "Andersen, Henriette Thaulow", "Hedlund, Magnus", "Ito,
- 4. Метод ElementAtOrDefault public static TSource ElementAtOrDefault (this System.Collections.Generic.IEnumerable source, int index);
- 5. Метод ElementAtOrDefault int index = 20; string name = names.ElementAtOrDefault(index); Console.WriteLine("The name chosen at index {0}
- 6. Метод Reverse public static System.Collections.Generic.IEnumerable Reverse (this System.Collections.Generic.IEnumerable source);
- 7. Метод Reverse char[] apple = { 'a', 'p', 'p', 'l', 'e' }; char[] reversed = apple.Reverse().ToArray();
- 8. public static System.Linq.IOrderedEnumerable OrderBy (this System.Collections.Generic.IEnumerable source, Func keySelector); Метод Enumerable.OrderBy
- 9. public static void OrderByEx1() { Pet[] pets = { new Pet { Name="Barley", Age=8 }, new
- 10. public static System.Linq.IOrderedEnumerable OrderBy (this System.Collections.Generic.IEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.OrderBy
- 11. public static System.Linq.IOrderedEnumerable OrderByDescending (this System.Collections.Generic.IEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.OrderByDescending
- 12. public static System.Linq.IOrderedEnumerable OrderByDescending (this System.Collections.Generic.IEnumerable source, Func keySelector); Метод Enumerable.OrderByDescending
- 13. public static System.Linq.IOrderedEnumerable ThenBy (this System.Linq.IOrderedEnumerable source, Func keySelector, System.Collections.Generic.IComparer comparer); Метод Enumerable.ThenBy
- 14. public static System.Linq.IOrderedEnumerable ThenBy (this System.Linq.IOrderedEnumerable source, Func keySelector); Метод Enumerable.ThenBy
- 15. string[] fruits = { "grape", "passionfruit", "banana", "mango", "orange", "raspberry", "apple", "blueberry" }; IEnumerable query =
- 16. public class CaseInsensitiveComparer : IComparer { public int Compare(string x, string y) { return string.Compare(x, y,
- 17. public static void ThenByDescendingEx1() { string[] fruits = { "apPLe", "baNanA", "apple", "APple", "orange", "BAnana", "ORANGE",
- 18. Метод Take public static System.Collections.Generic.IEnumerable Take (this System.Collections.Generic.IEnumerable source, int count);
- 19. Метод Take int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable topThreeGrades
- 20. Метод TakeWhile public static System.Collections.Generic.IEnumerable TakeWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 21. Метод TakeWhile string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape" }; IEnumerable query =
- 22. Метод TakeWhile public static System.Collections.Generic.IEnumerable TakeWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 23. Метод TakeWhile string[] fruits = { "apple", "passionfruit", "banana", "mango", "orange", "blueberry", "grape", "strawberry" }; IEnumerable
- 24. Метод Skip public static System.Collections.Generic.IEnumerable Skip (this System.Collections.Generic.IEnumerable source, int count);
- 25. Метод Skip int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable lowerGrades
- 26. Метод SkipWhile public static System.Collections.Generic.IEnumerable SkipWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 27. Метод SkipWhile int[] grades = { 59, 82, 70, 56, 92, 98, 85 }; IEnumerable lowerGrades
- 28. Метод SkipWhile public static System.Collections.Generic.IEnumerable SkipWhile (this System.Collections.Generic.IEnumerable source, Func predicate);
- 29. Метод SkipWhile int[] amounts = { 5000, 2500, 9000, 8000, 6500, 4000, 1500, 5500 }; IEnumerable
- 30. Метод SkipLast public static System.Collections.Generic.IEnumerable SkipLast (this System.Collections.Generic.IEnumerable source, int count);
- 31. Метод Select public static System.Collections.Generic.IEnumerable Select (this System.Collections.Generic.IEnumerable source, Func selector);
- 32. Метод Select string[] fruits = { "apple", "banana", "mango", "orange", "passionfruit", "grape" }; var query =
- 33. Метод Select public static System.Collections.Generic.IEnumerable Select (this System.Collections.Generic.IEnumerable source, Func selector);
- 34. Метод Select IEnumerable squares = Enumerable.Range(1, 10).Select(x => x * x); foreach (int num in squares)
- 35. Метод SelectMany public static System.Collections.Generic.IEnumerable SelectMany (this System.Collections.Generic.IEnumerable source, Func > selector);
- 36. Метод SelectMany PetOwner[] petOwners = { new PetOwner { Name="Higa, Sidney", Pets = new List {
- 37. Метод SelectMany IEnumerable query1 = petOwners.SelectMany(petOwner => petOwner.Pets); IEnumerable > query2 = petOwners.Select(petOwner => petOwner.Pets);
- 38. Метод SelectMany var query = petOwners .SelectMany(petOwner => petOwner.Pets, (petOwner, petName) => new { petOwner, petName
- 39. Метод Zip public static System.Collections.Generic.IEnumerable Zip (this System.Collections.Generic.IEnumerable first, System.Collections.Generic.IEnumerable second, Func resultSelector);
- 40. Метод Zip int[] numbers = { 1, 2, 3, 4 }; string[] words = { "one",
- 41. Метод Zip public static System.Collections.Generic.IEnumerable > Zip (this System.Collections.Generic.IEnumerable first, System.Collections.Generic.IEnumerable second);
- 42. Метод Disctinct public static System.Collections.Generic.IEnumerable Distinct (this System.Collections.Generic.IEnumerable source);
- 43. Метод Disctinct List ages = new List { 21, 46, 46, 55, 17, 21, 55, 55
- 44. Метод Disctinct public class Product : IEquatable { public string Name { get; set; } public
- 46. Скачать презентацию