PeanutButter
Loading...
Searching...
No Matches
PeanutButter.DuckTyping.Shimming.IPropertyInfoFetcher Interface Reference

Interface to implement for a utility to fetch properties on a type or object. More...

Public Member Functions

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.

Detailed Description

Interface to implement for a utility to fetch properties on a type or object.

Member Function Documentation

◆ GetProperties()

PropertyInfo[] PeanutButter.DuckTyping.Shimming.IPropertyInfoFetcher.GetProperties ( Type srcType,
BindingFlags bindingFlags )

Fetches properties from a type which conform to the provided binding flags.

Parameters
srcTypeType to inspect
bindingFlagsBinding 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
objObject to inspect
bindingFlagsBinding 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