IGUtils.

GetAttributedFields<TAttribute>(Type, BindingFlags, List<TAttribute>, List<FieldInfo>) 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) 
    where TAttribute : Attribute

Type Parameters

Name Description
TAttribute

Parameters

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

Return Value

Type Description
void