This is the online documentation for PostSharp 4.3.
Download PDF or CHM. Go to v4.3 or v5.0
CustomReflectionBinder Class
Custom implementation of a reflection Binder that select methods based on exact matches using the ReflectionTypeComparer.
Inheritance Hierarchy
System.Object
  System.Reflection.Binder
    PostSharp.Reflection.CustomReflectionBinder

Namespace: PostSharp.Reflection
Assembly: PostSharp (in PostSharp.dll) Version: 4.3.31.0 (4.3.31.0)
Syntax
C#
public sealed class CustomReflectionBinder : Binder

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[]).)
Top
Fields
  NameDescription
Public fieldStatic memberInstance
Singleton instance.
Top
Extension Methods
  NameDescription
Public Extension MethodQueryInterface<T>
Gets the implementation of a specified interface for the specified object.
(Defined by QueryInterfaceExtensions.)
Top
See Also