UtilEnumEnumToListT Method
Converts the source Enum to ListT.
Namespace: DevCase.Runtime.EnumsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static List<T> EnumToList<T>()
Public Shared Function EnumToList(Of T) As List(Of T)
Dim returnValue As List(Of T)
returnValue = UtilEnum.EnumToList()
public:
generic<typename T>
static List<T>^ EnumToList()
static member EnumToList : unit -> List<'T>
No code example is currently available or this language may not be supported.
- T
-
The type of Enum.
ListT
The resulting
ListT.
This is a code example.
No code example is currently available or this language may not be supported.
Dim weekdays As List(Of DayOfWeek) =
EnumToList(Of DayOfWeek).FindAll(
Function(x As DayOfWeek)
Return x <> DayOfWeek.Sunday AndAlso
x <> DayOfWeek.Saturday
End Function)
For Each weekday As DayOfWeek In weekdays
Console.WriteLine(weekday.ToString)
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.