Method GetPropertiesRecursively
GetPropertiesRecursively(Type, List<PropertyInfo>, BindingFlags)
Gets all properties of the Type or any of its base Types.
Declaration
public static void GetPropertiesRecursively(this Type type, List<PropertyInfo> fields, BindingFlags bindingAttr = BindingFlags.DeclaredOnly | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type we are going to get properties on. |
List<PropertyInfo> | fields | A list to which all properties of this type will be added. |
BindingFlags | bindingAttr | A bitmask specifying how the search is conducted. |