Class EnumerableExtensions
Extension methods for the .Net IEnumerable class
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit
Assembly: cs.temp.dll.dll
Syntax
public static class EnumerableExtensions
Methods
MaxOrDefault<T>(IEnumerable<T>, IComparer<T>)
Returns the max element based on the provided comparer or the default value when the list is empty
Declaration
public static T MaxOrDefault<T>(this IEnumerable<T> items, IComparer<T> comparer = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<T> | items | |
| IComparer<T> | comparer |
Returns
| Type | Description |
|---|---|
| T | Max or default value of T |
Type Parameters
| Name | Description |
|---|---|
| T |