Class EnumListExtensions
Inheritance
EnumListExtensions
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 |
IList<T> |
|
Type Parameters
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 |
IEnumerable<T> |
enumList |
The enum list.
|
T |
inclusiveMaximum |
The inclusive maximum.
|
Returns
Type Parameters