We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

    Show / Hide Table of Contents

    Class EnumerableExtensions

    Extension methods for the .Net IEnumerable class

    Inheritance
    Object
    EnumerableExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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
    Back to top Generated by DocFX