CSharp System.Collections.Generic ICollection

CSharp examples for System.Collections.Generic:ICollection

Description

Click the following links for the tutorial for System.Collections.Generic and ICollection.

  1. Is the provided collection null or empty?
  2. Scrape all of the items in the collection which are non null and unique.
  3. Scrape all of the items in the collection which are not null.
  4. Checks if two collections are equivalent, regardless of the order of their contents
  5. Adds all of the elements of the "c" collection to the "target" collection.
  6. Converts the specified collection to its string representation.
  7. Determines whether the NameValueCollection contains a specific value.
  8. Returns a copy of a collection with a new single item added to it.


  9. Removes all items in from Collection.
  10. Check whether a collection is null or empty
  11. Casts down each item in the provided enumerable to create a collection that is strongly typed.
  12. Iterates over each item in the collection and applies the specified action to it.
  13. Return the enumerable as a Collection of T, copying if required.
  14. Adds the missing items to the collection. Deals with null collections
  15. Adds the range of items. Deals with null collections
  16. Returns the element count of the collection. If collection is null or empty, returns zero


  17. Checks whether or not collection is null or empty. Assumes collection can be safely enumerated multiple times.
  18. Add a range of items to a collection.
  19. Returns a single string, representing the ToString values of the objects in the given collection.
  20. Returns all elements of a collection that occur more than once in the given collection.
  21. Gets the next element in the collection or default when no next element can be found.
  22. Checks whether a collection is the same as another collection.
  23. Returns a value Indicating whether an item can be inserted in a collection.
  24. Gets the number of items in the collection.
  25. Inserts an item into the collection at an index.
  26. Removes an item from the collection.
  27. Removes an item at a given index from the collection.
  28. Collection Equals
  29. Add All to collection
  30. Get Team Project Collections
  31. Sequentially adds all elements, returned by the enumerator, to the specified collection.
  32. Sequentially removes all elements, returned by the enumerator, from the specified collection, if it has it.
  33. Check whether all the elements in a collection are unique or not.
  34. Convert Element type in Collection
  35. Map and add all elements of the collection into the source collection. Using the given delegate to transform elements.
  36. traversing a collection with the action.
  37. Check if a collection is empty or just a null.
  38. Adds all the elements from the given enumerable to the given collection.
  39. Executes a function on each item in a and collects all the entries for which the result of the function is equal to true.
  40. Union two collections
  41. Group the collection using a function which returns the key.
  42. Concatenates all target collections into a single collection. The items are added in order.
  43. Returns true if any item in the target collection satisfies the specified predicate.
  44. Find a value of one of the given types in the given Collection, searching the Collection for a value of the first type, then searching for a value of the second type, etc.
  45. Finds a value of the given type in the given collection.
  46. Determine whether a given collection only contains a single unique object
  47. Collection Contains Ignoring Case
  48. Removes all the elements from the target collection that are contained in the source collection.
  49. Compares a collection of objects of a given type with another collection of objects with the same given type to see if they are the same.
  50. Checks whether a collection contains all the elements of another.
  51. Sorts a collection using the specified comparer descending.
  52. Takes a number of elements from the specified collection from the specified starting index.
  53. Converts a collection of objects to a comma separated string representing the objects.
  54. Find Collection Interface from Type
  55. Remove Range from ICollection
  56. Load From String