Method GetInterfaceFieldsFromClasses
GetInterfaceFieldsFromClasses(IEnumerable<Type>, List<FieldInfo>, List<Type>, BindingFlags)
Gets the field info on a collection of classes that are from a collection of interfaces.
Declaration
public static void GetInterfaceFieldsFromClasses(this IEnumerable<Type> classes, List<FieldInfo> fields, List<Type> interfaceTypes, BindingFlags bindingAttr)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Type> | classes | Collection of classes to get fields from. |
List<FieldInfo> | fields | A list to which matching fields will be added. |
List<Type> | interfaceTypes | Collection of interfaceTypes to check if field type implements any interface type. |
BindingFlags | bindingAttr | Binding flags of fields. |