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

◆ ConstNode() [2/2]

System.Data.ConstNode.ConstNode ( DataTable table,
ValueType type,
object constant,
bool fParseQuotes )
inlinepackage

Definition at line 16 of file ConstNode.cs.

17 : base(table)
18 {
19 switch (type)
20 {
21 case ValueType.Null:
22 _val = DBNull.Value;
23 break;
24 case ValueType.Numeric:
26 break;
27 case ValueType.Decimal:
29 break;
30 case ValueType.Float:
32 break;
33 case ValueType.Bool:
35 break;
36 case ValueType.Str:
37 if (fParseQuotes)
38 {
39 _val = ((string)constant).Replace("''", "'");
40 }
41 else
42 {
44 }
45 break;
46 case ValueType.Date:
48 break;
49 default:
50 _val = constant;
51 break;
52 }
53 }
object SmallestDecimal(object constant)
Definition ConstNode.cs:103
object SmallestNumeric(object constant)
Definition ConstNode.cs:166
readonly object _val
Definition ConstNode.cs:9
static CultureInfo InvariantCulture

References System.Data.ConstNode._val, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.NumberFormatInfo.InvariantInfo, System.DateTime.Parse(), System.Data.ConstNode.SmallestDecimal(), System.Data.ConstNode.SmallestNumeric(), System.Convert.ToBoolean(), System.Convert.ToDouble(), System.type, and System.DBNull.Value.