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.
Показать файл Открыть проект Примеры использования класса

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