C# 클래스 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.
파일 보기 프로젝트 열기: jschementi/iron 1 사용 예제들

Private Properties

프로퍼티 타입 설명
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions
BindingTarget System.Linq.Expressions

공개 메소드들

메소드 설명
MakeExpression ( ) : Expression

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

비공개 메소드들

메소드 설명
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

메소드 상세

MakeExpression() 공개 메소드

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