C# Class LuaSharp.LuaFunction

Represents a reference to a function inside of a Lua state.
Inheritance: IDisposable
Mostra file Open project: jsimmons/LuaSharp

Public Methods

Method Description
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.

Private Methods

Method Description
LuaFunction ( IntPtr s ) : System

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

Method Details

Call() public method

Call the function with the specified arguments.
/// Is thrown when an operation cannot be performed. ///
public Call ( ) : object[]
return object[]

Dispose() public method

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
return void