PostSharp//API Reference/Post­Sharp.​Reflection/Custom­Reflection­Binder
Open sandboxFocus

Class CustomReflectionBinder

Custom implementation of a reflection Binder that select methods based on exact matches using the ReflectionTypeComparer.

Namespace: PostSharp.Reflection
Assembly: PostSharp.dll
public sealed class CustomReflectionBinder : Binder


Name Description

Singleton instance.


Name Description
BindToField(BindingFlags, FieldInfo[], Object, CultureInfo)

Selects a field from the given set of fields, based on the specified criteria.

BindToMethod(BindingFlags, MethodBase[], ref Object[], ParameterModifier[], CultureInfo, String[], out Object)

Selects a method to invoke from the given set of methods, based on the supplied arguments.

ChangeType(Object, Type, CultureInfo)

Changes the type of the given langword_csharp_Object to the given langword_csharp_Type.

ReorderArgumentArray(ref Object[], Object)

Upon returning from BindToMethod(BindingFlags, MethodBase[], Object[], ParameterModifier[], CultureInfo, String[], Object), restores the args argument to what it was when it came from langword_csharp_BindToMethod.

SelectMethod(BindingFlags, MethodBase[], Type[], ParameterModifier[])

Selects a method from the given set of methods, based on the argument type.

SelectProperty(BindingFlags, PropertyInfo[], Type, Type[], ParameterModifier[])

Selects a property from the given set of properties, based on the specified criteria.