C# 클래스 LuaSharp.ClrFunction

Represents a CLR function.
It is safe to share functions across Lua states.
상속: IDisposable
파일 보기 프로젝트 열기: jsimmons/LuaSharp 1 사용 예제들

공개 메소드들

메소드 설명
ClrFunction ( ) : System

Initializes a new instance of the LuaSharp.ClrFunction class.

Dispose ( ) : void

Releases all resource used by the LuaSharp.ClrFunction object.

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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

Releases all resource used by the LuaSharp.ClrFunction object.

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

InvokeDispose ( ) : void

Invokes the Dispose(bool) method, guarding against repeated disposes.

This can be used to call Dispose(bool) from a finalizer if one is added to a class that inherits from this one.

OnInvoke ( Lua state, object args ) : object[]

Called when the function should be invoked.

비공개 메소드들

메소드 설명
Invoke ( IntPtr s ) : int

Called when lua requests that the function is invoked.

메소드 상세

ClrFunction() 공개 메소드

Initializes a new instance of the LuaSharp.ClrFunction class.
public ClrFunction ( ) : System
리턴 System

Dispose() 공개 메소드

Releases all resource used by the LuaSharp.ClrFunction object.
Call Dispose when you are finished using the LuaSharp.ClrFunction. The Dispose method leaves the LuaSharp.ClrFunction in an unusable state. After calling Dispose, you must release all references to the LuaSharp.ClrFunction so the garbage collector can reclaim the memory that the LuaSharp.ClrFunction was occupying.
public Dispose ( ) : void
리턴 void

Dispose() 보호된 메소드

Releases all resource used by the LuaSharp.ClrFunction object.
Call Dispose when you are finished using the LuaSharp.ClrFunction. The Dispose method leaves the LuaSharp.ClrFunction in an unusable state. After calling Dispose, you must release all references to the LuaSharp.ClrFunction so the garbage collector can reclaim the memory that the LuaSharp.ClrFunction was occupying.
protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

InvokeDispose() 보호된 메소드

Invokes the Dispose(bool) method, guarding against repeated disposes.
This can be used to call Dispose(bool) from a finalizer if one is added to a class that inherits from this one.
protected InvokeDispose ( ) : void
리턴 void

OnInvoke() 보호된 추상적인 메소드

Called when the function should be invoked.
protected abstract OnInvoke ( Lua state, object args ) : object[]
state Lua /// The Lua state that is calling the function. ///
args object /// The arguments that were passed to the function. ///
리턴 object[]