C# Класс LuaSharp.LuaFunction

Represents a reference to a function inside of a Lua state.
Наследование: IDisposable
Показать файл Открыть проект

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

Метод Описание
Call ( ) : object[]

Call the function with the specified arguments.

Dispose ( ) : void

Releases all resource used by the LuaSharp.LuaFunction object.

Call Dispose when you are finished using the LuaSharp.LuaFunction. The Dispose method leaves the LuaSharp.LuaFunction in an unusable state. After calling Dispose, you must release all references to the LuaSharp.LuaFunction so the garbage collector can reclaim the memory that the LuaSharp.LuaFunction was occupying.

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

Метод Описание
LuaFunction ( IntPtr s ) : System

Creates a LuaFunction for the object on the top of the stack, and pops it.

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

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

Call the function with the specified arguments.
/// Is thrown when an operation cannot be performed. ///
public Call ( ) : object[]
Результат object[]

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

Releases all resource used by the LuaSharp.LuaFunction object.
Call Dispose when you are finished using the LuaSharp.LuaFunction. The Dispose method leaves the LuaSharp.LuaFunction in an unusable state. After calling Dispose, you must release all references to the LuaSharp.LuaFunction so the garbage collector can reclaim the memory that the LuaSharp.LuaFunction was occupying.
public Dispose ( ) : void
Результат void