Interface to implement for a utility to fetch properties on a type or object.
More...
|
PropertyInfo[] | GetProperties (Type srcType, BindingFlags bindingFlags) |
| Fetches properties from a type which conform to the provided binding flags.
|
PropertyInfo[] | GetPropertiesFor (object obj, BindingFlags bindingFlags) |
| Fetches properties from an object which conform to the provided binding flags.
|
Interface to implement for a utility to fetch properties on a type or object.
◆ GetProperties()
PropertyInfo[] PeanutButter.DuckTyping.Shimming.IPropertyInfoFetcher.GetProperties |
( |
Type | srcType, |
|
|
BindingFlags | bindingFlags ) |
Fetches properties from a type which conform to the provided binding flags.
- Parameters
-
srcType | Type to inspect |
bindingFlags | Binding Flags to match |
- Returns
- Array of all properties found on the type which match the given binding flags
◆ GetPropertiesFor()
PropertyInfo[] PeanutButter.DuckTyping.Shimming.IPropertyInfoFetcher.GetPropertiesFor |
( |
object | obj, |
|
|
BindingFlags | bindingFlags ) |
Fetches properties from an object which conform to the provided binding flags.
- Parameters
-
obj | Object to inspect |
bindingFlags | Binding Flags to match |
- Returns
- Array of all properties found on the object which match the given binding flags
The documentation for this interface was generated from the following file:
- source/Utils/PeanutButter.DuckTyping/Shimming/IPropertyInfoFetcher.cs