C# Класс IronPython.Runtime.Binding.Binders

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
BinaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
Convert ( Expression codeContext, PythonContext binder, Type type, ConversionResultKind resultKind, Expression target ) : Expression

Backwards compatible Convert for the old sites that need to flow CodeContext

Get ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
InvokeKeywords ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder

Creates a new InvokeBinder which will call with positional and keyword splatting. The signature of the target site should be object(function), object[], dictionary, retType

InvokeSplat ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder

Creates a new InvokeBinder which will call with positional splatting. The signature of the target site should be object(function), object[], retType

TryGet ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
UnaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder

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

Метод Описание
GetExpressionTypeFromBinaryOperator ( PythonOperationKind operatorName ) : ExpressionType?
GetExpressionTypeFromUnaryOperator ( PythonOperationKind operatorName ) : ExpressionType?

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

BinaryOperationBinder() публичный статический Метод

public static BinaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
state PythonContext
operatorName PythonOperationKind
Результат System.Dynamic.DynamicMetaObjectBinder

Convert() публичный статический Метод

Backwards compatible Convert for the old sites that need to flow CodeContext
public static Convert ( Expression codeContext, PythonContext binder, Type type, ConversionResultKind resultKind, Expression target ) : Expression
codeContext Expression
binder PythonContext
type System.Type
resultKind ConversionResultKind
target Expression
Результат Expression

Get() публичный статический Метод

public static Get ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
codeContext Expression
binder PythonContext
resultType System.Type
name string
target Expression
Результат Expression

InvokeKeywords() публичный статический Метод

Creates a new InvokeBinder which will call with positional and keyword splatting. The signature of the target site should be object(function), object[], dictionary, retType
public static InvokeKeywords ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder
state PythonContext
Результат IronPython.Runtime.Binding.PythonInvokeBinder

InvokeSplat() публичный статический Метод

Creates a new InvokeBinder which will call with positional splatting. The signature of the target site should be object(function), object[], retType
public static InvokeSplat ( PythonContext state ) : IronPython.Runtime.Binding.PythonInvokeBinder
state PythonContext
Результат IronPython.Runtime.Binding.PythonInvokeBinder

TryGet() публичный статический Метод

public static TryGet ( Expression codeContext, PythonContext binder, Type resultType, string name, Expression target ) : Expression
codeContext Expression
binder PythonContext
resultType System.Type
name string
target Expression
Результат Expression

UnaryOperationBinder() публичный статический Метод

public static UnaryOperationBinder ( PythonContext state, PythonOperationKind operatorName ) : DynamicMetaObjectBinder
state PythonContext
operatorName PythonOperationKind
Результат System.Dynamic.DynamicMetaObjectBinder