C# 클래스 Jurassic.Compiler.JSBinder

Binds to a method group using the default javascript rules (extra parameter values are ignored, missing parameter values are replaced with "undefined").
상속: MethodBinder
파일 보기 프로젝트 열기: paulbartrum/jurassic

공개 메소드들

메소드 설명
JSBinder ( ) : System

Creates a new JSBinder instance.

JSBinder ( IEnumerable targetMethods ) : System

Creates a new JSBinder instance.

보호된 메소드들

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

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

비공개 메소드들

메소드 설명
EmitTypeConversion ( ILGenerator generator, Type fromType, BinderArgument argument ) : void

Pops the value on the stack, converts it from one type to another, then pushes the result onto the stack. Undefined is converted to the given default value.

EmitTypeConversion ( ILGenerator il, Type fromType, Type toType ) : void

Pops the value on the stack, converts it from one type to another, then pushes the result onto the stack.

EmitUndefined ( ILGenerator il, BinderArgument argument ) : void

Pushes the result of converting undefined to the given type onto the stack.

메소드 상세

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

JSBinder() 공개 메소드

Creates a new JSBinder instance.
public JSBinder ( ) : System
리턴 System

JSBinder() 공개 메소드

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