C# 클래스 LitDev.LDCall

파일 보기 프로젝트 열기: litdev1/LitDev

공개 메소드들

메소드 설명
CallAsync ( Primitive dll, Primitive extension, Primitive obj, Primitive method, Primitive arguments ) : Primitive

Call any extension method asynchronously. See example LDCallAsync. If dll, extension, obj and arguments are all "", then method may be a subroutine in your SmallBasic program.

CallInclude ( Primitive include, Primitive method ) : Primitive

Call a method in an included pre-compiled file.

Compile ( Primitive path ) : Primitive

Compile a secondary Small Basic file. Assumes that Small Basic is installed in the default location for your OS.

Function ( Primitive funcName, Primitive arg1 ) : Primitive

Call a Small Basic Sub as a function with one input argument. The input arguments(s) will be copied to an array called "args". The result should be put in a variable (may be an array) called "return". The variable "args" should be set to "" at the start of the program. The input parameter(s) are unchanged, while "args" and "return" are set to "" on return.

Function2 ( Primitive funcName, Primitive arg1, Primitive arg2 ) : Primitive

Call a Small Basic Sub as a function with two input arguments. See Function for more details.

Function3 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3 ) : Primitive

Call a Small Basic Sub as a function with three input arguments. See Function for more details.

Function4 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3, Primitive arg4 ) : Primitive

Call a Small Basic Sub as a function with four input arguments. See Function for more details.

Function5 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3, Primitive arg4, Primitive arg5 ) : Primitive

Call a Small Basic Sub as a function with five input arguments. See Function for more details.

Include ( Primitive path ) : Primitive

Reference a previously compiled program to use a subroutine method from.

비공개 메소드들

메소드 설명
DoCall ( Object obj ) : void
Func ( string funcName, Primitive args ) : string
GetIncude ( string name ) : IncludeFile
GetNextIncude ( ) : int

메소드 상세

CallAsync() 공개 정적인 메소드

Call any extension method asynchronously. See example LDCallAsync. If dll, extension, obj and arguments are all "", then method may be a subroutine in your SmallBasic program.
public static CallAsync ( Primitive dll, Primitive extension, Primitive obj, Primitive method, Primitive arguments ) : Primitive
dll Primitive The extension dll (e.g. "LitDev.dll" or "SmallBasicLibrary.dll").
extension Primitive The extension namespace (usually the same as the dll name, e.g. "LitDev" or "MicroSoft.SmallBasic.Library" for SmallBasicLibrary.dll).
obj Primitive The extension object name.
method Primitive The extension method name.
arguments Primitive An array of arguments or "" for none. A single argument doesn't have to be in an array.
리턴 Primitive

CallInclude() 공개 정적인 메소드

Call a method in an included pre-compiled file.
public static CallInclude ( Primitive include, Primitive method ) : Primitive
include Primitive The include file name returned by Include method.
method Primitive The subroutine name to call in the included exe.
리턴 Primitive

Compile() 공개 정적인 메소드

Compile a secondary Small Basic file. Assumes that Small Basic is installed in the default location for your OS.
public static Compile ( Primitive path ) : Primitive
path Primitive A Small Basic file to compile (.sb).
리턴 Primitive

Function() 공개 정적인 메소드

Call a Small Basic Sub as a function with one input argument. The input arguments(s) will be copied to an array called "args". The result should be put in a variable (may be an array) called "return". The variable "args" should be set to "" at the start of the program. The input parameter(s) are unchanged, while "args" and "return" are set to "" on return.
public static Function ( Primitive funcName, Primitive arg1 ) : Primitive
funcName Primitive The Small Basic Sub name.
arg1 Primitive An input value (may be an array).
리턴 Primitive

Function2() 공개 정적인 메소드

Call a Small Basic Sub as a function with two input arguments. See Function for more details.
public static Function2 ( Primitive funcName, Primitive arg1, Primitive arg2 ) : Primitive
funcName Primitive
arg1 Primitive 1st input value (may be an array).
arg2 Primitive 2nd input value (may be an array).
리턴 Primitive

Function3() 공개 정적인 메소드

Call a Small Basic Sub as a function with three input arguments. See Function for more details.
public static Function3 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3 ) : Primitive
funcName Primitive
arg1 Primitive 1st input value (may be an array).
arg2 Primitive 2nd input value (may be an array).
arg3 Primitive 3rd input value (may be an array).
리턴 Primitive

Function4() 공개 정적인 메소드

Call a Small Basic Sub as a function with four input arguments. See Function for more details.
public static Function4 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3, Primitive arg4 ) : Primitive
funcName Primitive
arg1 Primitive 1st input value (may be an array).
arg2 Primitive 2nd input value (may be an array).
arg3 Primitive 3rd input value (may be an array).
arg4 Primitive 4th input value (may be an array).
리턴 Primitive

Function5() 공개 정적인 메소드

Call a Small Basic Sub as a function with five input arguments. See Function for more details.
public static Function5 ( Primitive funcName, Primitive arg1, Primitive arg2, Primitive arg3, Primitive arg4, Primitive arg5 ) : Primitive
funcName Primitive
arg1 Primitive 1st input value (may be an array).
arg2 Primitive 2nd input value (may be an array).
arg3 Primitive 3rd input value (may be an array).
arg4 Primitive 4th input value (may be an array).
arg5 Primitive 5th input value (may be an array).
리턴 Primitive

Include() 공개 정적인 메소드

Reference a previously compiled program to use a subroutine method from.
public static Include ( Primitive path ) : Primitive
path Primitive The full path to a secondary compiled Small Basic program to use (.exe)
리턴 Primitive