Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
FormatterConverter.cs
Go to the documentation of this file.
3
5
7{
8 public object Convert(object value, Type type)
9 {
10 if (value == null)
11 {
13 }
15 }
16
17 public object Convert(object value, TypeCode typeCode)
18 {
19 if (value == null)
20 {
22 }
24 }
25
26 public bool ToBoolean(object value)
27 {
28 if (value == null)
29 {
31 }
33 }
34
35 public char ToChar(object value)
36 {
37 if (value == null)
38 {
40 }
42 }
43
44 [CLSCompliant(false)]
45 public sbyte ToSByte(object value)
46 {
47 if (value == null)
48 {
50 }
52 }
53
54 public byte ToByte(object value)
55 {
56 if (value == null)
57 {
59 }
61 }
62
63 public short ToInt16(object value)
64 {
65 if (value == null)
66 {
68 }
70 }
71
72 [CLSCompliant(false)]
73 public ushort ToUInt16(object value)
74 {
75 if (value == null)
76 {
78 }
80 }
81
82 public int ToInt32(object value)
83 {
84 if (value == null)
85 {
87 }
89 }
90
91 [CLSCompliant(false)]
92 public uint ToUInt32(object value)
93 {
94 if (value == null)
95 {
97 }
99 }
100
101 public long ToInt64(object value)
102 {
103 if (value == null)
104 {
106 }
108 }
109
110 [CLSCompliant(false)]
111 public ulong ToUInt64(object value)
112 {
113 if (value == null)
114 {
116 }
118 }
119
120 public float ToSingle(object value)
121 {
122 if (value == null)
123 {
125 }
127 }
128
129 public double ToDouble(object value)
130 {
131 if (value == null)
132 {
134 }
136 }
137
138 public decimal ToDecimal(object value)
139 {
140 if (value == null)
141 {
143 }
145 }
146
147 public DateTime ToDateTime(object value)
148 {
149 if (value == null)
150 {
152 }
154 }
155
156 public string? ToString(object value)
157 {
158 if (value == null)
159 {
161 }
163 }
164
166 private static void ThrowValueNullException()
167 {
168 throw new ArgumentNullException("value");
169 }
170}
static ? string ToString(object? value)
Definition Convert.cs:2321
static decimal ToDecimal(object? value)
Definition Convert.cs:2101
static long ToInt64(object? value)
Definition Convert.cs:1623
static float ToSingle(object? value)
Definition Convert.cs:1881
static int ToInt32(object? value)
Definition Convert.cs:1320
static DateTime ToDateTime(DateTime value)
Definition Convert.cs:2211
static short ToInt16(object? value)
Definition Convert.cs:1038
static byte ToByte(object? value)
Definition Convert.cs:900
static uint ToUInt32(object? value)
Definition Convert.cs:1470
static ulong ToUInt64(object? value)
Definition Convert.cs:1738
static char ToChar(object? value)
Definition Convert.cs:618
static ushort ToUInt16(object? value)
Definition Convert.cs:1177
static ? object ChangeType(object? value, TypeCode typeCode)
Definition Convert.cs:229
static sbyte ToSByte(object? value)
Definition Convert.cs:745
static double ToDouble(object? value)
Definition Convert.cs:1991
static bool ToBoolean([NotNullWhen(true)] object? value)
Definition Convert.cs:508
static CultureInfo InvariantCulture
object Convert(object value, TypeCode typeCode)
TypeCode
Definition TypeCode.cs:4