Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Function.cs
Go to the documentation of this file.
1
namespace
System.Data
;
2
3
internal
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
}
System.Data.Function._isVariantArgumentList
readonly bool _isVariantArgumentList
Definition
Function.cs:13
System.Data.Function.s_functionName
static string[] s_functionName
Definition
Function.cs:19
System.Data.Function._id
readonly FunctionId _id
Definition
Function.cs:7
System.Data.Function.Function
Function(string name, FunctionId id, Type result, bool IsValidateArguments, bool IsVariantArgumentList, int argumentCount, Type a1, Type a2, Type a3)
Definition
Function.cs:27
System.Data.Function._isValidateArguments
readonly bool _isValidateArguments
Definition
Function.cs:11
System.Data.Function._argumentCount
readonly int _argumentCount
Definition
Function.cs:15
System.Data.Function._result
readonly Type _result
Definition
Function.cs:9
System.Data.Function._name
readonly string _name
Definition
Function.cs:5
System.Data.Function._parameters
readonly Type[] _parameters
Definition
Function.cs:17
System.Data.Function
Definition
Function.cs:4
System.Type
Definition
Type.cs:14
System.Data.FunctionId
FunctionId
Definition
FunctionId.cs:4
System.Data
Definition
ADP.cs:12
source
System.Data.Common
System.Data
Function.cs
Generated by
1.10.0