GetAllFields Method
Definition
- Namespace
- Cuemon.Extensions.Reflection
- Assemblies
- Cuemon.Extensions.Reflection.dll
GetAllFields(Type, Action<MemberReflectionOptions>)
Retrieves a collection that represents all fields defined on the specified source and its inheritance chain.
public static IEnumerable<FieldInfo> GetAllFields(this Type source, Action<MemberReflectionOptions> setup = null)
Parameters
sourceTypeThe Type to extend.
setupAction<MemberReflectionOptions>The MemberReflectionOptions which may be configured.
Returns
- IEnumerable<FieldInfo>
An IEnumerable<T> that contains all FieldInfo objects of the specified
sourceand its inheritance chain.