Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Function.cs
Go to the documentation of this file.
1namespace System.Data;
2
3internal sealed class Function
4{
5 internal readonly string _name;
6
7 internal readonly FunctionId _id;
8
9 internal readonly Type _result;
10
11 internal readonly bool _isValidateArguments;
12
13 internal readonly bool _isVariantArgumentList;
14
15 internal readonly int _argumentCount;
16
17 internal readonly Type[] _parameters = new Type[3];
18
19 internal static string[] s_functionName = new string[39]
20 {
21 "Unknown", "Ascii", "Char", "CharIndex", "Difference", "Len", "Lower", "LTrim", "Patindex", "Replicate",
22 "Reverse", "Right", "RTrim", "Soundex", "Space", "Str", "Stuff", "Substring", "Upper", "IsNull",
23 "Iif", "Convert", "cInt", "cBool", "cDate", "cDbl", "cStr", "Abs", "Acos", "In",
24 "Trim", "Sum", "Avg", "Min", "Max", "Count", "StDev", "Var", "DateTimeOffset"
25 };
26
27 internal Function(string name, FunctionId id, Type result, bool IsValidateArguments, bool IsVariantArgumentList, int argumentCount, Type a1, Type a2, Type a3)
28 {
29 _name = name;
30 _id = id;
31 _result = result;
32 _isValidateArguments = IsValidateArguments;
33 _isVariantArgumentList = IsVariantArgumentList;
34 _argumentCount = argumentCount;
35 if (a1 != null)
36 {
37 _parameters[0] = a1;
38 }
39 if (a2 != null)
40 {
41 _parameters[1] = a2;
42 }
43 if (a3 != null)
44 {
45 _parameters[2] = a3;
46 }
47 }
48}
readonly bool _isVariantArgumentList
Definition Function.cs:13
static string[] s_functionName
Definition Function.cs:19
readonly FunctionId _id
Definition Function.cs:7
Function(string name, FunctionId id, Type result, bool IsValidateArguments, bool IsVariantArgumentList, int argumentCount, Type a1, Type a2, Type a3)
Definition Function.cs:27
readonly bool _isValidateArguments
Definition Function.cs:11
readonly int _argumentCount
Definition Function.cs:15
readonly Type _result
Definition Function.cs:9
readonly string _name
Definition Function.cs:5
readonly Type[] _parameters
Definition Function.cs:17