UtilReflectionGetAllEnums Method
Namespace: DevCase.Core.Diagnostics.Assembly.ReflectionAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static IEnumerable<Type> GetAllEnums(
Assembly assembly
)
Public Shared Function GetAllEnums (
assembly As Assembly
) As IEnumerable(Of Type)
Dim assembly As [Assembly]
Dim returnValue As IEnumerable(Of Type)
returnValue = UtilReflection.GetAllEnums(assembly)
public:
static IEnumerable<Type^>^ GetAllEnums(
Assembly^ assembly
)
static member GetAllEnums :
assembly : Assembly -> IEnumerable<Type>
No code example is currently available or this language may not be supported.
- assembly Assembly
-
The source DevCase.Core.Diagnostics.Assembly.
IEnumerableType
Returns all the
Enum types defined in the source
DevCase.Core.Diagnostics.Assembly.
This is a code example.
No code example is currently available or this language may not be supported.
Dim assembly As Assembly = Assembly.GetExecutingAssembly()
Dim enums As IEnumerable(Of Type) = GetAllEnums(assembly)
For Each enu As Type In enums
Console.WriteLine(String.Format("Name: {0}; Values: {1}", enu.FullName,
String.Join(", ", [Enum].GetNames(enu))))
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.