Class NamedObject
Defines some useful methods that can be used to create objects of type NamedObject<T>.
Inherited Members
Namespace: TheXDS.MCART.Types
Assembly: MCART.dll
Syntax
public static class NamedObject
Methods
| Edit this page View SourceFromEnum<T>()
Enumerates all enum values as named objects.
Declaration
public static IEnumerable<NamedObject<T>> FromEnum<T>() where T : struct, Enum
Returns
Type | Description |
---|---|
IEnumerable<NamedObject<T>> | An enumeration of NamedObject<T> from the values of the specified Enum type. |
Type Parameters
Name | Description |
---|---|
T | Type of Enum to get a collection of named objects for. |