mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    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

    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
    In This Article
    • Methods
      • MaxOrDefault<T>(IEnumerable<T>, IComparer<T>)
      • MaxOrDefault<T>(IEnumerable<T>, IComparer<T>)
    Back to top Generated by DocFX