Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ FunctionNode()

System.Data.FunctionNode.FunctionNode ( DataTable table,
string name )
inlinepackage

Definition at line 55 of file FunctionNode.cs.

56 : base(table)
57 {
58 _capturedLimiter = TypeLimiter.Capture();
59 _name = name;
60 for (int i = 0; i < s_funcs.Length; i++)
61 {
62 if (string.Equals(s_funcs[i]._name, name, StringComparison.OrdinalIgnoreCase))
63 {
64 _info = i;
65 break;
66 }
67 }
68 if (_info < 0)
69 {
70 throw ExprException.UndefinedFunction(_name);
71 }
72 }
readonly TypeLimiter _capturedLimiter
static readonly Function[] s_funcs
readonly string _name
static TypeLimiter Capture()

References System.Data.FunctionNode._capturedLimiter, System.Data.FunctionNode._info, System.Data.FunctionNode._name, System.Data.TypeLimiter.Capture(), System.Data.FunctionNode.s_funcs, and System.Data.ExprException.UndefinedFunction().