Class NamedObjectExtensions
Miscellaneous functions and extensions for all elements of the NamedObject<T> type.
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.dll
Syntax
public static class NamedObjectExtensions
Methods
| Edit this page View SourceAsNamedEnum(Type)
Enumerates all enumeration values of the specified type as a NamedObject<T> .
Declaration
public static IEnumerable<NamedObject<Enum>> AsNamedEnum(this Type t)
Parameters
Type | Name | Description |
---|---|---|
Type | t | Type of enumeration to convert. |
Returns
Type | Description |
---|---|
IEnumerable<NamedObject<Enum>> | An enumeration of NamedObject<T> from the enumeration values of the specified type. |
AsNamedObject<T>()
Enumerates all enumeration values of the specified type as a NamedObject<T> .
Declaration
public static IEnumerable<NamedObject<T>> AsNamedObject<T>() where T : struct, Enum
Returns
Type | Description |
---|---|
IEnumerable<NamedObject<T>> | An enumeration of NamedObject<T> from the enumeration values of the specified type. |
Type Parameters
Name | Description |
---|---|
T | Type of enumeration to convert. |