C# 클래스 LuaSharp.LuaFunction

Represents a reference to a function inside of a Lua state.
상속: IDisposable
파일 보기 프로젝트 열기: jsimmons/LuaSharp

공개 메소드들

메소드 설명
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