EnumerableUtility.IsSorted<T> method (1 of 2)

Determines whether the specified sequence is sorted.

public static bool IsSorted<T>(this IEnumerable<T> source)
parameter description
T The element type.
source The sequence.

Return Value

true if the specified sequence is sorted; otherwise, false.

See Also


EnumerableUtility.IsSorted<T> method (2 of 2)

Determines whether the specified sequence is sorted.

public static bool IsSorted<T>(this IEnumerable<T> source, IComparer<T>? comparer)
parameter description
T The element type.
source The sequence.
comparer The comparer.

Return Value

true if the specified sequence is sorted; otherwise, false.

See Also