C# Class Microsoft.Scripting.ComInterop.ComBinder

Provides helper methods to bind COM objects dynamically.
Exibir arquivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
CanComBind ( object value ) : bool
GetDynamicMemberNames ( object value ) : IEnumerable

Gets the member names associated with the object. This function can operate only with objects for which IsComObject returns true.

IsComObject ( object value ) : bool

Determines if an object is a COM object.

TryBindGetIndex ( GetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic get index operation.

TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic get member operation.

TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result, bool delayInvocation ) : bool

Tries to perform binding of the dynamic get member operation.

TryBindInvoke ( InvokeBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic invoke operation.

TryBindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic invoke member operation.

TryBindSetIndex ( SetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject value, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic set index operation.

TryBindSetMember ( SetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject value, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic set member operation.

TryConvert ( ConvertBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool

Tries to perform binding of the dynamic Convert operation.

Private Methods

Method Description
GetDynamicDataMemberNames ( object value ) : IList
GetDynamicDataMembers ( object value, IEnumerable names ) : object>>.IList
TryGetMetaObject ( DynamicMetaObject &instance ) : bool
TryGetMetaObjectInvoke ( DynamicMetaObject &instance ) : bool

Method Details

CanComBind() public static method

public static CanComBind ( object value ) : bool
value object
return bool

GetDynamicMemberNames() public static method

Gets the member names associated with the object. This function can operate only with objects for which IsComObject returns true.
public static GetDynamicMemberNames ( object value ) : IEnumerable
value object The object for which member names are requested.
return IEnumerable

IsComObject() public static method

Determines if an object is a COM object.
public static IsComObject ( object value ) : bool
value object The object to test.
return bool

TryBindGetIndex() public static method

Tries to perform binding of the dynamic get index operation.
public static TryBindGetIndex ( GetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.GetIndexBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryBindGetMember() public static method

Tries to perform binding of the dynamic get member operation.
public static TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool
binder System.Dynamic.GetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryBindGetMember() public static method

Tries to perform binding of the dynamic get member operation.
public static TryBindGetMember ( GetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject &result, bool delayInvocation ) : bool
binder System.Dynamic.GetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
delayInvocation bool true if member evaluation may be delayed.
return bool

TryBindInvoke() public static method

Tries to perform binding of the dynamic invoke operation.
public static TryBindInvoke ( InvokeBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.InvokeBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryBindInvokeMember() public static method

Tries to perform binding of the dynamic invoke member operation.
public static TryBindInvokeMember ( InvokeMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject &result ) : bool
binder System.Dynamic.InvokeMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryBindSetIndex() public static method

Tries to perform binding of the dynamic set index operation.
public static TryBindSetIndex ( SetIndexBinder binder, DynamicMetaObject instance, DynamicMetaObject args, DynamicMetaObject value, DynamicMetaObject &result ) : bool
binder System.Dynamic.SetIndexBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
args System.Dynamic.DynamicMetaObject An array of instances - arguments to the invoke member operation.
value System.Dynamic.DynamicMetaObject The representing the value for the set index operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryBindSetMember() public static method

Tries to perform binding of the dynamic set member operation.
public static TryBindSetMember ( SetMemberBinder binder, DynamicMetaObject instance, DynamicMetaObject value, DynamicMetaObject &result ) : bool
binder System.Dynamic.SetMemberBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
value System.Dynamic.DynamicMetaObject The representing the value for the set member operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool

TryConvert() public static method

Tries to perform binding of the dynamic Convert operation.
public static TryConvert ( ConvertBinder binder, DynamicMetaObject instance, DynamicMetaObject &result ) : bool
binder System.Dynamic.ConvertBinder An instance of the that represents the details of the dynamic operation.
instance System.Dynamic.DynamicMetaObject The target of the dynamic operation.
result System.Dynamic.DynamicMetaObject The new representing the result of the binding.
return bool