C# Class Microsoft.Scripting.Actions.Calls.BindingTarget

Encapsulates the result of an attempt to bind to one or methods using the OverloadResolver. Users should first check the Result property to see if the binding was successful or to determine the specific type of failure that occured. If the binding was successful MakeExpression can then be called to create an expression which calls the method. If the binding was a failure callers can then create a custom error message based upon the reason the call failed.
Exibir arquivo Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions

Public Methods

Method Description
MakeExpression ( ) : Expression

Gets an Expression which calls the binding target if the method binding succeeded. Throws InvalidOperationException if the binding failed.

Private Methods

Method Description
BindingTarget ( string name, BindingResult result ) : System.Linq.Expressions

Other failure.

BindingTarget ( string name, int actualArgumentCount, Microsoft.Scripting.Actions.Calls.CallFailure failures ) : System.Linq.Expressions

Creates a new BindingTarget when the method binding has failued due to one or more parameters which could not be converted.

BindingTarget ( string name, int actualArgumentCount, MethodCandidate ambiguousMatches ) : System.Linq.Expressions

Creates a new BindingTarget when the match was ambiguous

BindingTarget ( string name, int actualArgumentCount, MethodCandidate candidate, NarrowingLevel level, Microsoft.Scripting.Actions.Calls.RestrictedArguments restrictedArgs ) : System.Linq.Expressions

Creates a new BindingTarget when the method binding has succeeded.

BindingTarget ( string name, int actualArgumentCount, int expectedArgCount ) : System.Linq.Expressions

Creates a new BindingTarget when the method binding has failed due to an incorrect argument count

Method Details

MakeExpression() public method

Gets an Expression which calls the binding target if the method binding succeeded. Throws InvalidOperationException if the binding failed.
public MakeExpression ( ) : Expression
return Expression