Facebook
Twitter
Pinterest
Tumblr
GitHub
RSS
  • DEV Home
  • Documentation
  • Reference
  • Download
Search Results for

    Show / Hide Table of Contents

    Class EnumListExtensions

    Inheritance
    System.Object
    EnumListExtensions
    Namespace: Emby.Media.Common.Extensions
    Assembly: Emby.Media.Model.dll
    Syntax
    public static class EnumListExtensions

    Methods

    GetAll<T>(T)

    Returns all members of an enum as list.

    Declaration
    public static IList<T> GetAll<T>(this T enumType)
        where T : Enum
    Parameters
    Type Name Description
    T enumType

    Type of the enum.

    Returns
    Type Description
    System.Collections.Generic.IList<T>
    Type Parameters
    Name Description
    T

    GetHighestOrdinal<T>(IEnumerable<T>, T)

    Gets the value of an enum collection having the maximum OrdinalAttribute value that is equal or less to the ordinal value of inclusiveMaximum, or null in case there is none matching these conditions.

    Declaration
    public static T? GetHighestOrdinal<T>(this IEnumerable<T> enumList, T inclusiveMaximum)
        where T : struct, Enum
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> enumList

    The enum list.

    T inclusiveMaximum

    The inclusive maximum.

    Returns
    Type Description
    System.Nullable<T>
    Type Parameters
    Name Description
    T
    SDK
    On this Page
    Back to Top Copyright 2022 © EMBY LLC. Please see our terms of use and privacy policy.