C# Класс Microsoft.Scripting.Actions.Calls.ArgBuilder

ArgBuilder provides an argument value used by the MethodBinder. One ArgBuilder exists for each physical parameter defined on a method. Contrast this with ParameterWrapper which represents the logical argument passed to the method.
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
ToReturnExpression System.Linq.Expressions.Expression
UpdateFromReturn System.Linq.Expressions.Expression

Открытые методы

Метод Описание
Clone ( ParameterInfo newType ) : ArgBuilder

Защищенные методы

Метод Описание
ArgBuilder ( ParameterInfo info ) : System.Linq.Expressions
ToExpression ( OverloadResolver resolver, Microsoft.Scripting.Actions.Calls.RestrictedArguments args, bool hasBeenUsed ) : Expression

Provides the Expression which provides the value to be passed to the argument. If null is returned the argument is skipped (not passed to the callee).

Приватные методы

Метод Описание
ToReturnExpression ( OverloadResolver resolver ) : Expression

If the argument produces a return value (e.g. a ref or out value) this provides the additional value to be returned.

UpdateFromReturn ( OverloadResolver resolver, Microsoft.Scripting.Actions.Calls.RestrictedArguments args ) : Expression

Provides an Expression which will update the provided value after a call to the method. May return null if no update is required.

Описание методов

ArgBuilder() защищенный Метод

protected ArgBuilder ( ParameterInfo info ) : System.Linq.Expressions
info System.Reflection.ParameterInfo
Результат System.Linq.Expressions

Clone() публичный Метод

public Clone ( ParameterInfo newType ) : ArgBuilder
newType System.Reflection.ParameterInfo
Результат ArgBuilder

ToExpression() защищенный абстрактный Метод

Provides the Expression which provides the value to be passed to the argument. If null is returned the argument is skipped (not passed to the callee).
protected abstract ToExpression ( OverloadResolver resolver, Microsoft.Scripting.Actions.Calls.RestrictedArguments args, bool hasBeenUsed ) : Expression
resolver OverloadResolver
args Microsoft.Scripting.Actions.Calls.RestrictedArguments
hasBeenUsed bool
Результат System.Linq.Expressions.Expression