PostSharp 6.4 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Reflection Namespace / Custom­Reflection­Binder Class / Custom­Reflection­Binder Methods

CustomReflectionBinder Methods

The CustomReflectionBinder type exposes the following members.

Methods
  NameDescription
Public methodBindToField
Selects a field from the given set of fields, based on the specified criteria.
(Overrides Binder.BindToField(BindingFlags, FieldInfo[], Object, CultureInfo).)
Public methodBindToMethod
Selects a method to invoke from the given set of methods, based on the supplied arguments.
(Overrides Binder.BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object).)
Public methodChangeType
Changes the type of the given Object to the given Type.
(Overrides Binder.ChangeType(Object, Type, CultureInfo).)
Public methodReorderArgumentArray
Upon returning from BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object), restores the args argument to what it was when it came from BindToMethod.
(Overrides Binder.ReorderArgumentArray(Object[], Object).)
Public methodSelectMethod
Selects a method from the given set of methods, based on the argument type.
(Overrides Binder.SelectMethod(BindingFlags, MethodBase[], Type[], ParameterModifier[]).)
Public methodSelectProperty
Selects a property from the given set of properties, based on the specified criteria.
(Overrides Binder.SelectProperty(BindingFlags, PropertyInfo[], Type, Type[], ParameterModifier[]).)
See Also