C# 클래스 Dynamitey.Internal.Curry

Internal Implementation of Dynamic.Curry(object,System.Nullable{int})
상속: System.Dynamic.DynamicObject, IPartialApply
파일 보기 프로젝트 열기: ekonbenefits/dynamitey

공개 메소드들

메소드 설명
GetCustomType ( ) : Type

Gets the custom Type.

TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool

Provides implementation for binary operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.

TryConvert ( ConvertBinder binder, object &result ) : bool

Provides implementation for type conversion operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.

TryInvoke ( InvokeBinder binder, object args, object &result ) : bool

Provides the implementation for operations that invoke an object. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.

TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.

operator ( ) : dynamic

Pipe argument (left side) into curried function (right side)

비공개 메소드들

메소드 설명
Curry ( object target, int totalArgCount = null ) : System

메소드 상세

GetCustomType() 공개 메소드

Gets the custom Type.
public GetCustomType ( ) : Type
리턴 System.Type

TryBinaryOperation() 공개 메소드

Provides implementation for binary operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.
public TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool
binder System.Dynamic.BinaryOperationBinder Provides information about the binary operation. The binder.Operation property returns an object. For example, for the sum = first + second statement, where first and second are derived from the DynamicObject class, binder.Operation returns ExpressionType.Add.
arg object The right operand for the binary operation. For example, for the sum = first + second statement, where first and second are derived from the DynamicObject class, is equal to second.
result object The result of the binary operation.
리턴 bool

TryConvert() 공개 메소드

Provides implementation for type conversion operations. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.
public TryConvert ( ConvertBinder binder, object &result ) : bool
binder System.Dynamic.ConvertBinder Provides information about the conversion operation. The binder.Type property provides the type to which the object must be converted. For example, for the statement (String)sampleObject in C# (CType(sampleObject, Type) in Visual Basic), where sampleObject is an instance of the class derived from the class, binder.Type returns the type. The binder.Explicit property provides information about the kind of conversion that occurs. It returns true for explicit conversion and false for implicit conversion.
result object The result of the type conversion operation.
리턴 bool

TryInvoke() 공개 메소드

Provides the implementation for operations that invoke an object. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.
public TryInvoke ( InvokeBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeBinder Provides information about the invoke operation.
args object The arguments that are passed to the object during the invoke operation. For example, for the sampleObject(100) operation, where sampleObject is derived from the class, [0] is equal to 100.
result object The result of the object invocation.
리턴 bool

TryInvokeMember() 공개 메소드

Provides the implementation for operations that invoke a member. Classes derived from the T:System.Dynamic.DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
public TryInvokeMember ( InvokeMemberBinder binder, object args, object &result ) : bool
binder System.Dynamic.InvokeMemberBinder Provides information about the dynamic operation. The binder.Name property provides the name of the member on which the dynamic operation is performed. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is an instance of the class derived from the class, binder.Name returns "SampleMethod". The binder.IgnoreCase property specifies whether the member name is case-sensitive.
args object The arguments that are passed to the object member during the invoke operation. For example, for the statement sampleObject.SampleMethod(100), where sampleObject is derived from the class, [0] is equal to 100.
result object The result of the member invocation.
리턴 bool

operator() 공개 정적인 메소드

Pipe argument (left side) into curried function (right side)
public static operator ( ) : dynamic
리턴 dynamic