C# 클래스 Jurassic.Compiler.ClrBinder

Binds to a method group using pretty standard .NET rules. The main difference from the JSBinder is that the number of arguments must be correct. Additionally, it is possible to bind to overloaded methods with the same number of arguments.
상속: MethodBinder
파일 보기 프로젝트 열기: paulbartrum/jurassic 1 사용 예제들

공개 메소드들

메소드 설명
ClrBinder ( IEnumerable targetMethods ) : System

Creates a new ClrBinder instance.

ClrBinder ( IEnumerable targetMethods ) : System

Creates a new ClrBinder instance.

ClrBinder ( MethodBase targetMethod ) : System

Creates a new ClrBinder instance.

보호된 메소드들

메소드 설명
GenerateStub ( ILGenerator generator, int argumentCount ) : void

Generates a method that does type conversion and calls the bound method.

비공개 메소드들

메소드 설명
EmitConversionToObject ( ILGenerator generator, Type fromType ) : void

Pops the value on the stack, converts it to an object, then pushes the result onto the stack.

EmitConversionToType ( ILGenerator generator, Type toType, bool convertToAddress ) : void

Pops the value on the stack, converts it from an object to the given type, then pushes the result onto the stack.

메소드 상세

ClrBinder() 공개 메소드

Creates a new ClrBinder instance.
public ClrBinder ( IEnumerable targetMethods ) : System
targetMethods IEnumerable An enumerable list of methods to bind to.
리턴 System

ClrBinder() 공개 메소드

Creates a new ClrBinder instance.
public ClrBinder ( IEnumerable targetMethods ) : System
targetMethods IEnumerable An enumerable list of methods to bind to.
리턴 System

ClrBinder() 공개 메소드

Creates a new ClrBinder instance.
public ClrBinder ( MethodBase targetMethod ) : System
targetMethod System.Reflection.MethodBase A method to bind to.
리턴 System

GenerateStub() 보호된 메소드

Generates a method that does type conversion and calls the bound method.
protected GenerateStub ( ILGenerator generator, int argumentCount ) : void
generator ILGenerator The ILGenerator used to output the body of the method.
argumentCount int The number of arguments that will be passed to the delegate.
리턴 void