跳到主要内容
版本:0.1.0

Class BinderUtil

Assembly: RCaron.dll
View Source
Declaration
csharp
public static class BinderUtil
Declaration
csharp
public static class BinderUtil

Methods

EnsureIsType(Expression, Type)

View Source
Declaration
csharp
public static Expression EnsureIsType(this Expression exp, Type type)
Declaration
csharp
public static Expression EnsureIsType(this Expression exp, Type type)
Returns

System.Linq.Expressions.Expression

Parameters
TypeName
System.Linq.Expressions.Expressionexp
System.Typetype

GetValidOnceRestriction()

View Source
Declaration
csharp
public static BindingRestrictions GetValidOnceRestriction()
Declaration
csharp
public static BindingRestrictions GetValidOnceRestriction()
Returns

System.Dynamic.BindingRestrictions

SameTypeRCaronTypeRestrictions(DynamicMetaObject, RCaronType)

View Source
Declaration
csharp
public static BindingRestrictions SameTypeRCaronTypeRestrictions(DynamicMetaObject target, RCaronType rCaronType)
Declaration
csharp
public static BindingRestrictions SameTypeRCaronTypeRestrictions(DynamicMetaObject target, RCaronType rCaronType)
Returns

System.Dynamic.BindingRestrictions

Parameters
TypeName
System.Dynamic.DynamicMetaObjecttarget
RCaron.RCaronTyperCaronType

GetBinaryOperationBinder(OperationEnum)

View Source
Declaration
csharp
public static CallSiteBinder GetBinaryOperationBinder(OperationEnum operation)
Declaration
csharp
public static CallSiteBinder GetBinaryOperationBinder(OperationEnum operation)
Returns

System.Runtime.CompilerServices.CallSiteBinder

Parameters
TypeName
RCaron.OperationEnumoperation

GetBinaryOperationCallSite(OperationEnum)

View Source
Declaration
csharp
public static CallSite<Func<CallSite, object, object, object>> GetBinaryOperationCallSite(OperationEnum operation)
Declaration
csharp
public static CallSite<Func<CallSite, object, object, object>> GetBinaryOperationCallSite(OperationEnum operation)
Returns

System.Runtime.CompilerServices.CallSite<System.Func<System.Runtime.CompilerServices.CallSite,System.Object,System.Object,System.Object>>

Parameters
TypeName
RCaron.OperationEnumoperation

GetComparisonOperationBinder(OperationEnum)

View Source
Declaration
csharp
public static CallSiteBinder GetComparisonOperationBinder(OperationEnum operation)
Declaration
csharp
public static CallSiteBinder GetComparisonOperationBinder(OperationEnum operation)
Returns

System.Runtime.CompilerServices.CallSiteBinder

Parameters
TypeName
RCaron.OperationEnumoperation

GetComparisonOperationCallSite(OperationEnum)

View Source
Declaration
csharp
public static CallSite<Func<CallSite, object?, object?, object>> GetComparisonOperationCallSite(OperationEnum operation)
Declaration
csharp
public static CallSite<Func<CallSite, object?, object?, object>> GetComparisonOperationCallSite(OperationEnum operation)
Returns

System.Runtime.CompilerServices.CallSite<System.Func<System.Runtime.CompilerServices.CallSite,System.Object,System.Object,System.Object>>

Parameters
TypeName
RCaron.OperationEnumoperation