IGUtils.

GetAttributedFields<TAttribute>(Type, BindingFlags, List<TAttribute>, List<FieldInfo>, bool) Method

Summary

Get all fields with the specified attribute in `type`.
Assembly
Kybernetik.InspectorGadgets.dll
Namespace
InspectorGadgets
Containing Type
IGUtils

Syntax

public static void GetAttributedFields<TAttribute>(Type type, BindingFlags bindingFlags, List<TAttribute> attributes, List<FieldInfo> fields, bool inherit = true) 
    where TAttribute : Attribute

Type Parameters

Name Description
TAttribute

Parameters

Name Type Description
type Type
bindingFlags BindingFlags
attributes List<TAttribute>
fields List<FieldInfo>
inherit bool

Return Value

Type Description
void