Method GetFieldsWithAttribute
GetFieldsWithAttribute(Type, List<FieldInfo>, BindingFlags)
Get the fields with attributeType
in every assembly.
Declaration
public static void GetFieldsWithAttribute(Type attributeType, List<FieldInfo> fields, BindingFlags bindingAttr = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
Parameters
Type | Name | Description |
---|---|---|
Type | attributeType | The attribute type for which to search. |
List<FieldInfo> | fields | A list containing the FieldInfo of the fields with the attribute specified by |
BindingFlags | bindingAttr | Binding flags of the attribute. |