Skip to end of metadata
Go to start of metadata

Defines the members to support object binding which is used to bind arguments to indexers, constructors, methods or interfaces.

Definition

public interface IObjectBinding

Summary

The following table summarizes the members exposed in this interface.

Methods

BindToConstructor(Type, Object[]) Binds to constructor.
BindToIndex(object, Object[], bool) Binds to indexer
BindToMember(object, string, bool) Binds to a field, property or event of a given object.
BindToMethod(object, string, Type[], Object[]) Binds to method.
BindToMethod(object, MethodInfo, Object[]) Binds to method.
CanBind(MemberInfo) Evaluates if object binder could run binding procedure for the given member.
ConvertTo(object, Type) Converts value to target type.

Methods

IBinding BindToConstructor(Type target, Object[] arguments)

Binds to constructor.

Parameters

target
arguments

IBinding BindToIndex(object target, Object[] arguments, bool setter)

Binds to indexer

Parameters

target
arguments
setter

IMemberBinding BindToMember(object target, string memberName, bool throwNotFound)

Binds to a field, property or event of a given object.

Parameters

target
memberName
throwNotFound

IBinding BindToMethod(object target, string methodName, Type[] genericParameters, Object[] arguments)

Binds to method.

Parameters

target
methodName
genericParameters
arguments

IBinding BindToMethod(object target, MethodInfo method, Object[] arguments)

Binds to method.

Parameters

target
method
arguments

bool CanBind(MemberInfo member)

Evaluates if object binder could run binding procedure for the given member.

Parameters

member

object ConvertTo(object value, Type targetType)

Converts value to target type.

Parameters

value
targetType
  • No labels