Table of Contents

Method EnumFields

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

EnumFields(Type, bool, BindingFlags)

Enumerates field information for the specified Type.

public static IEnumerable<FieldInfo> EnumFields(Type type, bool sort = false, BindingFlags bindingFlags = BindingFlags.Instance | BindingFlags.Public)

Parameters

type Type

Type which fields are enumerated.

sort bool

Defines whether to sort returned fields by name.

bindingFlags BindingFlags

Specifies flags that control the way in which the search for members is conducted.

Returns

IEnumerable<FieldInfo>