Table of Contents

Class Library

Namespace
TabScript
Assembly
TableScript.dll

The purpose of this class is to transform C# libraries into available functions for TableScript

public static class Library
Inheritance
Library
Inherited Members

Methods

BuildLibrary(string, (Delegate func, string description)[], bool)

Using reflecion, transforms C# functions with Table, string, bool, int and void return types and arguments into FunctionExtStmt records

public static ResolvedImport BuildLibrary(string filename, (Delegate func, string description)[] functions, bool generateDescription = false)

Parameters

filename string
functions (Delegate func, string description)[]
generateDescription bool

Returns

ResolvedImport

BuildLibrary(string, (string name, Delegate func, string description)[], bool)

Using reflecion, transforms C# functions with Table, string, bool, int and void return types and arguments into FunctionExtStmt records with the specified names

public static ResolvedImport BuildLibrary(string filename, (string name, Delegate func, string description)[] functions, bool generateDescription = false)

Parameters

filename string
functions (string name, Delegate func, string description)[]
generateDescription bool

Returns

ResolvedImport

BuildSingle(string, Delegate, string, bool)

Using reflecion, transform a C# function with Table, string, bool, int and void return types and arguments into a FunctionExtStmt record. if 'name' is null, the method's name will be used

public static FunctionExtStmt BuildSingle(string name, Delegate d, string desc, bool generateDescription = false)

Parameters

name string
d Delegate
desc string
generateDescription bool

Returns

FunctionExtStmt