Click or drag to resize
ReadOnlyCollectionT Methods

The ReadOnlyCollectionT generic type exposes the following members.

Methods
Extension Methods
  NameDescription
Public Extension MethodContainsAllT
Checks whether the first sequence contains all elements of the second one.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodIsNullOrEmptyOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodIsNullOrEmptyTOverloaded.
Determines whether the collection is null or contains no elements.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemT
Returns a random item from the specified sequence.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemOrDefaultTOverloaded.
Returns a random item from the specified sequence or the default value of the specified type if the sequence is null or empty.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomItemOrDefaultT(T)Overloaded.
Returns a random item from the specified sequence or the specified default value if the sequence is null or empty.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectTOverloaded.
Selects a random item from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectT(Int32)Overloaded.
Selects the specified number of random items from the specified enumerable. If the number of items in the enumerable is smaller than the specified number of selections, the enumerable itself is returned.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomSelectT(Int32, ActionT)Overloaded.
Executes the specified action for the specified number of random items from the specified enumerable.
(Defined by EnumerableExtensionMethods.)
Public Extension MethodRandomWeightedItemT
Returns a random weighted item from the specified sequence. Uses the specified function to get the weight of an item. Idea was taken from http://stackoverflow.com/questions/17912005/quick-way-of-selecting-a-random-item-from-a-list-with-varying-probabilities-ba
(Defined by EnumerableExtensionMethods.)
Top
See Also