C# Класс Jurassic.Compiler.Binder

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

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

Метод Описание
Call ( ScriptEngine engine, object thisObject ) : object

Calls the bound method.

CreateDelegate ( int argumentCount ) : BinderDelegate

Creates a delegate that does type conversion and calls the bound method.

This method caches the result so calling CreateDelegate a second time with the same parameter count will be markedly quicker.

ToString ( ) : string

Returns a textual representation of this object.

Защищенные методы

Метод Описание
GenerateStub ( ILGenerator generator, int argumentCount ) : void

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

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

Метод Описание
CreateDelegateCore ( int argumentCount ) : BinderDelegate

Creates a delegate that does type conversion and calls the bound method.

No caching of the result occurs.

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

Call() публичный Метод

Calls the bound method.
public Call ( ScriptEngine engine, object thisObject ) : object
engine ScriptEngine The associated script engine.
thisObject object The value of the this keyword.
Результат object

CreateDelegate() публичный Метод

Creates a delegate that does type conversion and calls the bound method.
This method caches the result so calling CreateDelegate a second time with the same parameter count will be markedly quicker.
public CreateDelegate ( int argumentCount ) : BinderDelegate
argumentCount int The number of arguments that will be passed to the delegate.
Результат BinderDelegate

GenerateStub() защищенный абстрактный Метод

Generates a method that does type conversion and calls the bound method.
protected abstract 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

ToString() публичный Метод

Returns a textual representation of this object.
public ToString ( ) : string
Результат string