EnumerableExtensions Class

Definition

Extension methods to simplify working with IEnumerable collections.

public ref class EnumerableExtensions abstract sealed
public static class EnumerableExtensions
type EnumerableExtensions = class
Public Module EnumerableExtensions
Inheritance
EnumerableExtensions

Methods

DisposeElements<T>(IEnumerable<T>)

Disposes of all non-null elements in a collection.

MaxOrDefault<T>(IEnumerable<T>, IComparer<T>)

Returns the max item based on the provided comparer or the default value when the list is empty

ToReadOnlyCollection<T>(IEnumerable<T>)

Creates a read-only copy of an existing collection.

Applies to