38 'A',
'B',
'C',
'D',
'E',
'F',
'G',
'H',
'I',
'J',
39 'K',
'L',
'M',
'N',
'O',
'P',
'Q',
'R',
'S',
'T',
40 'U',
'V',
'W',
'X',
'Y',
'Z',
'a',
'b',
'c',
'd',
41 'e',
'f',
'g',
'h',
'i',
'j',
'k',
'l',
'm',
'n',
42 'o',
'p',
'q',
'r',
's',
't',
'u',
'v',
'w',
'x',
43 'y',
'z',
'0',
'1',
'2',
'3',
'4',
'5',
'6',
'7',
44 '8',
'9',
'+',
'/',
'='
51 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
52 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
53 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
54 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
55 -1, -1, -1, 62, -1, -1, -1, 63, 52, 53,
56 54, 55, 56, 57, 58, 59, 60, 61, -1, -1,
57 -1, -1, -1, -1, -1, 0, 1, 2, 3, 4,
58 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
59 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
60 25, -1, -1, -1, -1, -1, -1, 26, 27, 28,
61 29, 30, 31, 32, 33, 34, 35, 36, 37, 38,
62 39, 40, 41, 42, 43, 44, 45, 46, 47, 48,
63 49, 50, 51, -1, -1, -1, -1, -1, -1, -1,
64 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
65 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
66 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
67 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
68 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
69 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
70 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
71 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
72 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
73 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
74 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
75 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
76 -1, -1, -1, -1, -1, -1
83 int num = utf16.Length & -4;
90 int num4 = ((
length < (num >> 2) * 3) ? (
length / 3 * 4) : (num - 4));
95 int num5 =
Decode(ref
Unsafe.Add(ref reference, num2), ref reference3);
104 else if (num4 == num - 4 && num2 != num)
106 int num6 =
Unsafe.Add(ref reference, num - 4);
107 int num7 =
Unsafe.Add(ref reference, num - 3);
108 int num8 =
Unsafe.Add(ref reference, num - 2);
109 int num9 =
Unsafe.Add(ref reference, num - 1);
110 if (((num6 | num7 | num8 | num9) & 0xFFFFFF00u) == 0
L)
112 num6 =
Unsafe.Add(ref reference3, num6);
113 num7 =
Unsafe.Add(ref reference3, num7);
119 num8 =
Unsafe.Add(ref reference3, num8);
120 num9 =
Unsafe.Add(ref reference3, num9);
124 if (num6 >= 0 && num3 <=
length - 3)
133 num8 =
Unsafe.Add(ref reference3, num8);
136 if (num6 >= 0 && num3 <=
length - 2)
138 Unsafe.Add(ref reference2, num3) = (byte)(num6 >> 16);
139 Unsafe.Add(ref reference2, num3 + 1) = (byte)(num6 >> 8);
144 else if (num6 >= 0 && num3 <=
length - 1)
146 Unsafe.Add(ref reference2, num3) = (byte)(num6 >> 16);
172 private static int Decode(ref
char encodedChars, ref sbyte decodingMap)
174 int num = encodedChars;
175 int num2 =
Unsafe.Add(ref encodedChars, 1);
176 int num3 =
Unsafe.Add(ref encodedChars, 2);
177 int num4 =
Unsafe.Add(ref encodedChars, 3);
178 if (((num | num2 | num3 | num4) & 0xFFFFFF00u) != 0
L)
182 num =
Unsafe.Add(ref decodingMap, num);
183 num2 =
Unsafe.Add(ref decodingMap, num2);
184 num3 =
Unsafe.Add(ref decodingMap, num3);
185 num4 =
Unsafe.Add(ref decodingMap, num4);
210 return convertible.GetTypeCode();
225 return convertible.GetTypeCode() ==
TypeCode.DBNull;
228 [
return: NotNullIfNotNull(
"value")]
234 [
return: NotNullIfNotNull(
"value")]
245 return typeCode
switch
247 TypeCode.Boolean => convertible.ToBoolean(provider),
248 TypeCode.Char => convertible.ToChar(provider),
249 TypeCode.SByte => convertible.ToSByte(provider),
250 TypeCode.Byte => convertible.ToByte(provider),
251 TypeCode.Int16 => convertible.ToInt16(provider),
252 TypeCode.UInt16 => convertible.ToUInt16(provider),
253 TypeCode.Int32 => convertible.ToInt32(provider),
254 TypeCode.UInt32 => convertible.ToUInt32(provider),
255 TypeCode.Int64 => convertible.ToInt64(provider),
256 TypeCode.UInt64 => convertible.ToUInt64(provider),
257 TypeCode.Single => convertible.ToSingle(provider),
258 TypeCode.Double => convertible.ToDouble(provider),
259 TypeCode.Decimal => convertible.ToDecimal(provider),
260 TypeCode.DateTime => convertible.ToDateTime(provider),
261 TypeCode.String => convertible.ToString(provider),
262 TypeCode.Object =>
value,
271 if (targetType ==
null)
275 if ((
object)
value.GetType() == targetType)
281 return value.ToBoolean(provider);
285 return value.ToChar(provider);
289 return value.ToSByte(provider);
293 return value.ToByte(provider);
297 return value.ToInt16(provider);
301 return value.ToUInt16(provider);
305 return value.ToInt32(provider);
309 return value.ToUInt32(provider);
313 return value.ToInt64(provider);
317 return value.ToUInt64(provider);
321 return value.ToSingle(provider);
325 return value.ToDouble(provider);
329 return value.ToDecimal(provider);
333 return value.ToDateTime(provider);
337 return value.ToString(provider);
358 [
return: NotNullIfNotNull(
"value")]
364 [
return: NotNullIfNotNull(
"value")]
367 if ((
object)conversionType ==
null)
381 if (
value.GetType() == conversionType)
389 return convertible.ToBoolean(provider);
393 return convertible.ToChar(provider);
397 return convertible.ToSByte(provider);
401 return convertible.ToByte(provider);
405 return convertible.ToInt16(provider);
409 return convertible.ToUInt16(provider);
413 return convertible.ToInt32(provider);
417 return convertible.ToUInt32(provider);
421 return convertible.ToInt64(provider);
425 return convertible.ToUInt64(provider);
429 return convertible.ToSingle(provider);
433 return convertible.ToDouble(provider);
437 return convertible.ToDecimal(provider);
441 return convertible.ToDateTime(provider);
445 return convertible.ToString(provider);
451 return convertible.ToType(conversionType, provider);
531 [CLSCompliant(
false)]
552 [CLSCompliant(
false)]
563 [CLSCompliant(
false)]
574 [CLSCompliant(
false)]
586 return bool.Parse(
value);
595 return bool.Parse(
value);
646 [CLSCompliant(
false)]
670 [CLSCompliant(
false)]
681 [CLSCompliant(
false)]
696 [CLSCompliant(
false)]
717 if (
value.Length != 1)
744 [CLSCompliant(
false)]
754 [CLSCompliant(
false)]
764 [CLSCompliant(
false)]
774 [CLSCompliant(
false)]
780 [CLSCompliant(
false)]
783 if (
value >
'\u007f')
790 [CLSCompliant(
false)]
800 [CLSCompliant(
false)]
803 if (value < -128 || value > 127)
810 [CLSCompliant(
false)]
820 [CLSCompliant(
false)]
823 if (value < -128 || value > 127)
830 [CLSCompliant(
false)]
840 [CLSCompliant(
false)]
843 if (value < -128 || value > 127)
850 [CLSCompliant(
false)]
860 [CLSCompliant(
false)]
866 [CLSCompliant(
false)]
872 [CLSCompliant(
false)]
875 return decimal.ToSByte(decimal.Round(
value, 0));
878 [CLSCompliant(
false)]
885 return sbyte.Parse(
value);
888 [CLSCompliant(
false)]
891 return sbyte.Parse(
value, provider);
894 [CLSCompliant(
false)]
941 [CLSCompliant(
false)]
953 if ((uint)
value > 255u)
960 [CLSCompliant(
false)]
975 [CLSCompliant(
false)]
990 [CLSCompliant(
false)]
1012 return decimal.ToByte(decimal.Round(
value, 0));
1021 return byte.Parse(
value);
1030 return byte.Parse(
value, provider);
1071 return (
short)
value;
1074 [CLSCompliant(
false)]
1085 [CLSCompliant(
false)]
1092 return (
short)
value;
1097 if (value < -32768 || value > 32767)
1101 return (
short)
value;
1104 [CLSCompliant(
false)]
1111 return (
short)
value;
1121 if (value < -32768 || value > 32767)
1125 return (
short)
value;
1128 [CLSCompliant(
false)]
1135 return (
short)
value;
1150 return decimal.ToInt16(decimal.Round(
value, 0));
1159 return short.Parse(
value);
1168 return short.Parse(
value, provider);
1176 [CLSCompliant(
false)]
1186 [CLSCompliant(
false)]
1196 [CLSCompliant(
false)]
1206 [CLSCompliant(
false)]
1212 [CLSCompliant(
false)]
1219 return (ushort)
value;
1222 [CLSCompliant(
false)]
1228 [CLSCompliant(
false)]
1235 return (ushort)
value;
1238 [CLSCompliant(
false)]
1244 [CLSCompliant(
false)]
1250 [CLSCompliant(
false)]
1257 return (ushort)
value;
1260 [CLSCompliant(
false)]
1266 [CLSCompliant(
false)]
1273 return (ushort)
value;
1276 [CLSCompliant(
false)]
1282 [CLSCompliant(
false)]
1288 [CLSCompliant(
false)]
1291 return decimal.ToUInt16(decimal.Round(
value, 0));
1294 [CLSCompliant(
false)]
1301 return ushort.Parse(
value);
1304 [CLSCompliant(
false)]
1311 return ushort.Parse(
value, provider);
1314 [CLSCompliant(
false)]
1352 [CLSCompliant(
false)]
1368 [CLSCompliant(
false)]
1374 [CLSCompliant(
false)]
1391 if (value < int.MinValue || value >
int.MaxValue)
1398 [CLSCompliant(
false)]
1401 if (
value >
int.MaxValue)
1417 if (
value < 2147483647.5)
1419 int num = (int)
value;
1420 double num2 =
value - (double)num;
1421 if (num2 > 0.5 || (num2 == 0.5 && ((uint)num & (
true ? 1u : 0u)) != 0))
1428 else if (
value >= -2147483648.5)
1430 int num3 = (int)
value;
1431 double num4 =
value - (double)num3;
1432 if (num4 < -0.5 || (num4 == -0.5 && ((uint)num3 & (
true ? 1u : 0u)) != 0))
1443 return decimal.ToInt32(decimal.Round(
value, 0));
1452 return int.Parse(
value);
1461 return int.Parse(
value, provider);
1469 [CLSCompliant(
false)]
1479 [CLSCompliant(
false)]
1489 [CLSCompliant(
false)]
1499 [CLSCompliant(
false)]
1505 [CLSCompliant(
false)]
1515 [CLSCompliant(
false)]
1521 [CLSCompliant(
false)]
1531 [CLSCompliant(
false)]
1537 [CLSCompliant(
false)]
1547 [CLSCompliant(
false)]
1553 [CLSCompliant(
false)]
1559 [CLSCompliant(
false)]
1562 if (
value > uint.MaxValue)
1569 [CLSCompliant(
false)]
1575 [CLSCompliant(
false)]
1580 uint num = (uint)
value;
1581 double num2 =
value - (double)num;
1582 if (num2 > 0.5 || (num2 == 0.5 && (num & (
true ? 1u : 0u)) != 0))
1591 [CLSCompliant(
false)]
1594 return decimal.ToUInt32(decimal.Round(
value, 0));
1597 [CLSCompliant(
false)]
1604 return uint.Parse(
value);
1607 [CLSCompliant(
false)]
1614 return uint.Parse(
value, provider);
1617 [CLSCompliant(
false)]
1643 return value ? 1 : 0;
1651 [CLSCompliant(
false)]
1667 [CLSCompliant(
false)]
1678 [CLSCompliant(
false)]
1684 [CLSCompliant(
false)]
1711 return decimal.ToInt64(decimal.Round(
value, 0));
1720 return long.Parse(
value);
1729 return long.Parse(
value, provider);
1737 [CLSCompliant(
false)]
1747 [CLSCompliant(
false)]
1757 [CLSCompliant(
false)]
1767 [CLSCompliant(
false)]
1773 [CLSCompliant(
false)]
1780 return (ulong)
value;
1783 [CLSCompliant(
false)]
1789 [CLSCompliant(
false)]
1796 return (ulong)
value;
1799 [CLSCompliant(
false)]
1805 [CLSCompliant(
false)]
1812 return (ulong)
value;
1815 [CLSCompliant(
false)]
1821 [CLSCompliant(
false)]
1828 return (ulong)
value;
1831 [CLSCompliant(
false)]
1837 [CLSCompliant(
false)]
1843 [CLSCompliant(
false)]
1849 [CLSCompliant(
false)]
1852 return decimal.ToUInt64(decimal.Round(
value, 0));
1855 [CLSCompliant(
false)]
1862 return ulong.Parse(
value);
1865 [CLSCompliant(
false)]
1872 return ulong.Parse(
value, provider);
1875 [CLSCompliant(
false)]
1899 [CLSCompliant(
false)]
1920 [CLSCompliant(
false)]
1931 [CLSCompliant(
false)]
1942 [CLSCompliant(
false)]
1955 return (
float)
value;
1960 return (
float)
value;
1969 return float.Parse(
value);
1978 return float.Parse(
value, provider);
1983 return value ? 1 : 0;
2009 [CLSCompliant(
false)]
2030 [CLSCompliant(
false)]
2041 [CLSCompliant(
false)]
2052 [CLSCompliant(
false)]
2070 return (
double)
value;
2079 return double.Parse(
value);
2088 return double.Parse(
value, provider);
2093 return value ? 1 : 0;
2119 [CLSCompliant(
false)]
2140 [CLSCompliant(
false)]
2151 [CLSCompliant(
false)]
2162 [CLSCompliant(
false)]
2170 return (decimal)
value;
2175 return (decimal)
value;
2184 return decimal.Parse(
value);
2193 return decimal.Parse(
value, provider);
2203 return value ? 1 : 0;
2252 [CLSCompliant(
false)]
2268 [CLSCompliant(
false)]
2279 [CLSCompliant(
false)]
2290 [CLSCompliant(
false)]
2330 return convertible.ToString(provider);
2334 return formattable.ToString(
null, provider);
2338 return value.ToString();
2340 return string.Empty;
2345 return value.ToString();
2350 return value.ToString();
2355 return char.ToString(
value);
2360 return value.ToString();
2363 [CLSCompliant(
false)]
2366 return value.ToString();
2369 [CLSCompliant(
false)]
2372 return value.ToString(provider);
2377 return value.ToString();
2382 return value.ToString(provider);
2387 return value.ToString();
2392 return value.ToString(provider);
2395 [CLSCompliant(
false)]
2398 return value.ToString();
2401 [CLSCompliant(
false)]
2404 return value.ToString(provider);
2409 return value.ToString();
2414 return value.ToString(provider);
2417 [CLSCompliant(
false)]
2420 return value.ToString();
2423 [CLSCompliant(
false)]
2426 return value.ToString(provider);
2431 return value.ToString();
2436 return value.ToString(provider);
2439 [CLSCompliant(
false)]
2442 return value.ToString();
2445 [CLSCompliant(
false)]
2448 return value.ToString(provider);
2453 return value.ToString();
2458 return value.ToString(provider);
2463 return value.ToString();
2468 return value.ToString(provider);
2473 return value.ToString();
2478 return value.ToString(provider);
2483 return value.ToString();
2488 return value.ToString(provider);
2491 [
return: NotNullIfNotNull(
"value")]
2497 [
return: NotNullIfNotNull(
"value")]
2505 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2514 if ((uint)num > 255u)
2521 [CLSCompliant(
false)]
2524 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2533 if (fromBase != 10 && num <= 255)
2537 if (num < -128 || num > 127)
2546 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2555 if (fromBase != 10 && num <= 65535)
2559 if (num < -32768 || num > 32767)
2566 [CLSCompliant(
false)]
2569 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2578 if ((uint)num > 65535u)
2587 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2598 [CLSCompliant(
false)]
2601 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2614 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2625 [CLSCompliant(
false)]
2628 if (fromBase != 2 && fromBase != 8 && fromBase != 10 && fromBase != 16)
2641 if (toBase != 2 && toBase != 8 && toBase != 10 && toBase != 16)
2650 if (toBase != 2 && toBase != 8 && toBase != 10 && toBase != 16)
2659 if (toBase != 2 && toBase != 8 && toBase != 10 && toBase != 16)
2668 if (toBase != 2 && toBase != 8 && toBase != 10 && toBase != 16)
2677 if (inArray ==
null)
2686 if (inArray ==
null)
2700 if (inArray ==
null)
2725 if (
bytes.Length == 0)
2727 return string.Empty;
2733 fixed (
char* outChars =
text)
2748 if (inArray ==
null)
2752 if (outArray ==
null)
2772 int num = inArray.Length;
2773 if (offsetIn > num -
length)
2782 int num2 = outArray.Length;
2784 if (offsetOut > num2 - num3)
2789 fixed (
char* outChars = &outArray[offsetOut])
2791 fixed (
byte* inData = &inArray[0])
2805 if (
bytes.Length == 0)
2812 if (num >
chars.Length)
2836 for (i =
offset; i < num2; i += 3)
2838 if (insertLineBreaks)
2842 outChars[num3++] =
'\r';
2843 outChars[num3++] =
'\n';
2848 outChars[num3] = ptr[(inData[i] & 0xFC) >> 2];
2849 outChars[num3 + 1] = ptr[((inData[i] & 3) << 4) | ((inData[i + 1] & 0xF0) >> 4)];
2850 outChars[num3 + 2] = ptr[((inData[i + 1] & 0xF) << 2) | ((inData[i + 2] & 0xC0) >> 6)];
2851 outChars[num3 + 3] = ptr[inData[i + 2] & 0x3F];
2855 if (insertLineBreaks && num != 0 && num4 == 76)
2857 outChars[num3++] =
'\r';
2858 outChars[num3++] =
'\n';
2863 outChars[num3] = ptr[(inData[i] & 0xFC) >> 2];
2864 outChars[num3 + 1] = ptr[((inData[i] & 3) << 4) | ((inData[i + 1] & 0xF0) >> 4)];
2865 outChars[num3 + 2] = ptr[(inData[i + 1] & 0xF) << 2];
2866 outChars[num3 + 3] = ptr[64];
2870 outChars[num3] = ptr[(inData[i] & 0xFC) >> 2];
2871 outChars[num3 + 1] = ptr[(inData[i] & 3) << 4];
2872 outChars[num3 + 2] = ptr[64];
2873 outChars[num3 + 3] = ptr[64];
2883 long num = ((long)inputLength + 2
L) / 3 * 4;
2888 if (insertLineBreaks)
2897 if (num >
int.MaxValue)
2910 fixed (
char* inputPtr =
s)
2929 while (
chars.Length != 0)
2934 bytesWritten += written;
2944 for (i = 1; i != chars.Length &&
chars[i].IsSpace(); i++)
2948 if (written % 3 != 0 &&
chars.Length != 0)
2956 if (((uint)charsWritten & 3u) != 0)
2961 span = span.
Slice(0, charsWritten);
2967 bytesWritten += written2;
2970 if (written2 % 3 == 0)
2974 for (
int j = 0; j <
chars.Length; j++)
2990 for (
int i = 0; i <
chars.Length; i++)
2995 tempBuffer[charsWritten++] = c;
2996 if (charsWritten == tempBuffer.
Length)
3003 consumed =
chars.Length;
3009 if (c !=
' ' && c !=
'\t' && c !=
'\r')
3018 if (inArray ==
null)
3034 if (inArray.Length == 0)
3036 return Array.Empty<
byte>();
3038 fixed (
char* ptr = &inArray[0])
3046 while (inputLength > 0)
3048 int num = inputPtr[inputLength - 1];
3049 if (num != 32 && num != 10 && num != 13 && num != 9)
3056 byte[]
array =
new byte[num2];
3066 char* ptr = inputPtr + inputLength;
3067 int num = inputLength;
3069 while (inputPtr < ptr)
3071 uint num3 = *inputPtr;
3129 return num / 4 * 3 + num2;
3143 if (
chars.Length == 0)
3145 return Array.Empty<
byte>();
3147 if ((uint)chars.Length % 2u != 0)
3151 byte[]
array =
GC.AllocateUninitializedArray<
byte>(chars.Length >> 1);
3161 if (inArray ==
null)
3170 if (inArray ==
null)
3191 if (
bytes.Length == 0)
3193 return string.Empty;
3195 if (
bytes.Length > 1073741823)
static ushort ToUInt16(char value)
static float ToSingle(decimal value)
static DateTime ToDateTime(long value)
static bool ToBoolean(float value)
static double ToDouble(string? value)
static string ToString(long value, int toBase)
static decimal ToDecimal(float value)
static sbyte ToSByte(string value, IFormatProvider? provider)
static ulong ToUInt64(string? value, IFormatProvider? provider)
static DateTime ToDateTime(string? value, IFormatProvider? provider)
static float ToSingle(string? value, IFormatProvider? provider)
static float ToSingle(bool value)
static sbyte ToSByte(float value)
static sbyte ToSByte(double value)
static byte ToByte(decimal value)
static ? string ToString(object? value)
static int ToInt32(string? value, IFormatProvider? provider)
static decimal ToDecimal(object? value)
static int ToInt32(string? value)
static float ToSingle(ulong value)
static short ToInt16(ushort value)
static byte[] FromHexString(string s)
static void ThrowInt32OverflowException()
static long ToInt64(object? value)
static string ToString(int value, int toBase)
static byte ToByte(float value)
static ushort ToUInt16(float value)
static int ToInt32(DateTime value)
static string ToString(short value, int toBase)
static decimal ToDecimal(bool value)
static ushort ToUInt16(bool value)
static string ToString(DateTime value)
static byte ToByte(bool value)
static double ToDouble(float value)
static char ToChar(sbyte value)
static uint ToUInt32(long value)
static string ToString(DateTime value, IFormatProvider? provider)
static ? object ChangeType(object? value, Type conversionType)
static ulong ToUInt64(ushort value)
static DateTime ToDateTime(ulong value)
static double ToDouble(DateTime value)
static ulong ToUInt64(DateTime value)
static long ToInt64(short value)
static uint ToUInt32(string? value, IFormatProvider? provider)
static string ToBase64String(byte[] inArray, Base64FormattingOptions options)
static sbyte ToSByte(ushort value)
static sbyte ToSByte(string? value, int fromBase)
static uint ToUInt32(char value)
static bool ToBoolean(DateTime value)
static uint ToUInt32(ulong value)
static byte ToByte(object? value, IFormatProvider? provider)
static long ToInt64(string? value)
static ulong ToUInt64(long value)
static ulong ToUInt64(string? value, int fromBase)
static sbyte ToSByte(char value)
static byte ToByte(DateTime value)
static sbyte ToSByte(uint value)
static bool IsDBNull([NotNullWhen(true)] object? value)
static uint ToUInt32(string? value)
static string ToHexString(byte[] inArray, int offset, int length)
static sbyte ToSByte(sbyte value)
static double ToDouble(decimal value)
static short ToInt16(char value)
static sbyte ToSByte(bool value)
static ushort ToUInt16(ushort value)
static bool ToBoolean([NotNullWhen(true)] string? value)
static void CopyToTempBufferWithoutWhiteSpace(ReadOnlySpan< char > chars, Span< char > tempBuffer, out int consumed, out int charsWritten)
static unsafe int FromBase64_ComputeResultLength(char *inputPtr, int inputLength)
static ulong ToUInt64(decimal value)
static uint ToUInt32(sbyte value)
static decimal ToDecimal(sbyte value)
static byte ToByte(int value)
static float ToSingle(DateTime value)
static string ToString(int value)
static long ToInt64(double value)
static float ToSingle(uint value)
static string ToString(char value, IFormatProvider? provider)
static decimal ToDecimal(int value)
static uint ToUInt32(decimal value)
static ? string ToString(string? value)
static double ToDouble(ulong value)
static string ToString(decimal value)
static ushort ToUInt16(byte value)
static string ToString(ushort value, IFormatProvider? provider)
static byte ToByte(short value)
static byte ToByte(long value)
static bool ToBoolean(sbyte value)
static uint ToUInt32(object? value, IFormatProvider? provider)
static double ToDouble(short value)
static double ToDouble(string? value, IFormatProvider? provider)
static long ToInt64(float value)
static decimal ToDecimal(ushort value)
static string ToString(float value)
static sbyte ToSByte(DateTime value)
static string ToBase64String(byte[] inArray, int offset, int length, Base64FormattingOptions options)
static string ToHexString(ReadOnlySpan< byte > bytes)
static string ToBase64String(byte[] inArray, int offset, int length)
static int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut)
static int ToInt32(uint value)
static short ToInt16(uint value)
static uint ToUInt32(int value)
static string ToString(short value)
static unsafe bool TryToBase64Chars(ReadOnlySpan< byte > bytes, Span< char > chars, out int charsWritten, Base64FormattingOptions options=Base64FormattingOptions.None)
static string ToString(ulong value, IFormatProvider? provider)
static ulong ToUInt64(object? value, IFormatProvider? provider)
static char ToChar(DateTime value)
static int ToInt32(double value)
static bool TryDecodeFromUtf16(ReadOnlySpan< char > utf16, Span< byte > bytes, out int consumed, out int written)
static long ToInt64(string? value, int fromBase)
static float ToSingle(object? value)
static int ToInt32(object? value)
static int ToInt32(int value)
static string ToString(long value)
static DateTime ToDateTime(uint value)
static decimal ToDecimal(object? value, IFormatProvider? provider)
static DateTime ToDateTime(DateTime value)
static DateTime ToDateTime(decimal value)
static sbyte ToSByte(object? value, IFormatProvider? provider)
static DateTime ToDateTime(sbyte value)
static int ToInt32(bool value)
static bool ToBoolean(long value)
static string ToString(uint value)
static void ThrowInt64OverflowException()
static short ToInt16(string? value, IFormatProvider? provider)
static ulong ToUInt64(string? value)
static char ToChar(ulong value)
static bool ToBoolean(ushort value)
static ushort ToUInt16(decimal value)
static short ToInt16(sbyte value)
static bool ToBoolean(bool value)
static string ToString(byte value, IFormatProvider? provider)
static string ToString(float value, IFormatProvider? provider)
static string ToString(ushort value)
static ulong ToUInt64(int value)
static unsafe string ToBase64String(ReadOnlySpan< byte > bytes, Base64FormattingOptions options=Base64FormattingOptions.None)
static string ToString(char value)
static char ToChar(bool value)
static bool ToBoolean(short value)
static decimal ToDecimal(ulong value)
static void ThrowByteOverflowException()
static string ToString(sbyte value)
static ulong ToUInt64(ulong value)
static ushort ToUInt16(string? value, IFormatProvider? provider)
static readonly char[] base64Table
static int ToInt32(decimal value)
static char ToChar(decimal value)
static int ToInt32(object? value, IFormatProvider? provider)
static ReadOnlySpan< sbyte > DecodingMap
static string ToString(double value, IFormatProvider? provider)
static ? string ToString(string? value, IFormatProvider? provider)
static double ToDouble(ushort value)
static decimal ToDecimal(decimal value)
static long ToInt64(long value)
static string ToString(double value)
static string ToString(short value, IFormatProvider? provider)
static void ThrowSByteOverflowException()
static ulong ToUInt64(float value)
static int Decode(ref char encodedChars, ref sbyte decodingMap)
static ushort ToUInt16(short value)
static double ToDouble(byte value)
static short ToInt16(int value)
static bool TryFromBase64String(string s, Span< byte > bytes, out int bytesWritten)
static ? object ChangeType(object? value, TypeCode typeCode, IFormatProvider? provider)
static decimal ToDecimal(byte value)
static double ToDouble(bool value)
static string ToHexString(byte[] inArray)
static short ToInt16(string? value)
static float ToSingle(short value)
static uint ToUInt32(byte value)
static int ToBase64_CalculateAndValidateOutputLength(int inputLength, bool insertLineBreaks)
static long ToInt64(uint value)
static short ToInt16(double value)
static uint ToUInt32(double value)
static decimal ToDecimal(long value)
static ushort ToUInt16(object? value, IFormatProvider? provider)
static byte ToByte(char value)
static ushort ToUInt16(string? value)
static decimal ToDecimal(char value)
static DateTime ToDateTime(object? value, IFormatProvider? provider)
static long ToInt64(sbyte value)
static uint ToUInt32(string? value, int fromBase)
static byte ToByte(sbyte value)
static int ToInt32(ushort value)
static bool ToBoolean(char value)
static readonly Type EnumType
static uint ToUInt32(ushort value)
static long ToInt64(object? value, IFormatProvider? provider)
static DateTime ToDateTime(string? value)
static bool ToBoolean([NotNullWhen(true)] object? value, IFormatProvider? provider)
static char ToChar(ushort value)
static short ToInt16(long value)
static long ToInt64(decimal value)
static short ToInt16(object? value)
static DateTime ToDateTime(short value)
static long ToInt64(DateTime value)
static string ToString(ulong value)
static sbyte ToSByte(byte value)
static uint ToUInt32(short value)
static char ToChar(object? value, IFormatProvider? provider)
static float ToSingle(double value)
static bool ToBoolean(byte value)
static string ToString(byte value)
static ushort ToUInt16(sbyte value)
static bool ToBoolean(int value)
static ushort ToUInt16(DateTime value)
static ulong ToUInt64(char value)
static ulong ToUInt64(short value)
static short ToInt16(ulong value)
static sbyte ToSByte(decimal value)
static char ToChar(uint value)
static byte ToByte(ushort value)
static decimal ToDecimal(DateTime value)
static string ToString(int value, IFormatProvider? provider)
static byte ToByte(object? value)
static DateTime ToDateTime(float value)
static int ToInt32(string? value, int fromBase)
static unsafe int ToBase64CharArray(byte[] inArray, int offsetIn, int length, char[] outArray, int offsetOut, Base64FormattingOptions options)
static uint ToUInt32(DateTime value)
static uint ToUInt32(object? value)
static sbyte ToSByte(long value)
static char ToChar(short value)
static ulong ToUInt64(object? value)
static byte ToByte(double value)
static char ToChar(char value)
static float ToSingle(byte value)
static int ToInt32(float value)
static double ToDouble(char value)
static sbyte ToSByte(string? value)
static bool IsSpace(this char c)
static long ToInt64(byte value)
static void ThrowCharOverflowException()
static sbyte ToSByte(ulong value)
static char ToChar(object? value)
static string ToString(bool value, IFormatProvider? provider)
static long ToInt64(ulong value)
static char ToChar(float value)
static float ToSingle(char value)
static uint ToUInt32(bool value)
static DateTime ToDateTime(bool value)
static byte ToByte(uint value)
static double ToDouble(object? value, IFormatProvider? provider)
static ushort ToUInt16(object? value)
static byte ToByte(string? value)
static uint ToUInt32(float value)
static char ToChar(byte value)
static string ToString(byte value, int toBase)
static long ToInt64(bool value)
static DateTime ToDateTime(char value)
static void ThrowUInt64OverflowException()
static short ToInt16(string? value, int fromBase)
static short ToInt16(bool value)
static sbyte ToSByte(int value)
static ? object ChangeType(object? value, TypeCode typeCode)
static readonly Type[] ConvertTypes
static sbyte ToSByte(object? value)
static double ToDouble(long value)
static bool ToBoolean([NotNullWhen(true)] string? value, IFormatProvider? provider)
static long ToInt64(char value)
static ushort ToUInt16(double value)
static short ToInt16(float value)
static double ToDouble(double value)
static bool ToBoolean(double value)
static double ToDouble(uint value)
static decimal ToDecimal(string? value, IFormatProvider? provider)
static string ToBase64String(byte[] inArray)
static int ToInt32(long value)
static unsafe byte[] FromBase64CharPtr(char *inputPtr, int inputLength)
static sbyte ToSByte(short value)
static ushort ToUInt16(long value)
static double ToDouble(int value)
static long ToInt64(string? value, IFormatProvider? provider)
static char ToChar(double value)
static DateTime ToDateTime(object? value)
static string ToString(long value, IFormatProvider? provider)
static ushort ToUInt16(string? value, int fromBase)
static int ToInt32(sbyte value)
static int ToInt32(ulong value)
static char ToChar(string value, IFormatProvider? provider)
static int ToInt32(short value)
static decimal ToDecimal(uint value)
static bool ToBoolean(uint value)
static double ToDouble(object? value)
static bool ToBoolean([NotNullWhen(true)] object? value)
static int ToInt32(char value)
static int ToInt32(byte value)
static float ToSingle(int value)
static short ToInt16(decimal value)
static float ToSingle(object? value, IFormatProvider? provider)
static float ToSingle(float value)
static char ToChar(long value)
static uint ToUInt32(uint value)
static bool ToBoolean(decimal value)
static ? string ToString(object? value, IFormatProvider? provider)
static unsafe byte[] FromBase64CharArray(char[] inArray, int offset, int length)
static TypeCode GetTypeCode(object? value)
static DateTime ToDateTime(double value)
static byte[] FromHexString(ReadOnlySpan< char > chars)
static string ToString(sbyte value, IFormatProvider? provider)
static long ToInt64(int value)
static double ToDouble(sbyte value)
static byte ToByte(ulong value)
static ulong ToUInt64(sbyte value)
static string ToString(decimal value, IFormatProvider? provider)
static short ToInt16(short value)
static void ThrowUInt16OverflowException()
static DateTime ToDateTime(byte value)
static float ToSingle(sbyte value)
static object DefaultToType(IConvertible value, Type targetType, IFormatProvider provider)
static void ThrowInt16OverflowException()
static bool TryFromBase64Chars(ReadOnlySpan< char > chars, Span< byte > bytes, out int bytesWritten)
static ? object ChangeType(object? value, Type conversionType, IFormatProvider? provider)
static float ToSingle(string? value)
static ushort ToUInt16(uint value)
static DateTime ToDateTime(int value)
static long ToInt64(ushort value)
static byte ToByte(byte value)
static char ToChar(int value)
static byte ToByte(string? value, int fromBase)
static short ToInt16(byte value)
static char ToChar(string value)
static unsafe int ConvertToBase64Array(char *outChars, byte *inData, int offset, int length, bool insertLineBreaks)
static DateTime ToDateTime(ushort value)
static ulong ToUInt64(uint value)
static string ToString(uint value, IFormatProvider? provider)
static ulong ToUInt64(double value)
static bool ToBoolean(ulong value)
static decimal ToDecimal(string? value)
static decimal ToDecimal(short value)
static ulong ToUInt64(bool value)
static ushort ToUInt16(ulong value)
static ulong ToUInt64(byte value)
static byte ToByte(string? value, IFormatProvider? provider)
static ushort ToUInt16(int value)
static string ToString(bool value)
static float ToSingle(ushort value)
static short ToInt16(object? value, IFormatProvider? provider)
static short ToInt16(DateTime value)
static float ToSingle(long value)
static void WriteThreeLowOrderBytes(ref byte destination, int value)
static decimal ToDecimal(double value)
static unsafe byte[] FromBase64String(string s)
static void ThrowUInt32OverflowException()
static readonly DBNull Value
static CultureInfo CurrentCulture
static bool TryDecodeFromUtf16(ReadOnlySpan< char > chars, Span< byte > bytes)
static unsafe string ToString(ReadOnlySpan< byte > bytes, Casing casing=Casing.Upper)
static decimal Round(decimal d)
static int DivRem(int a, int b, out int result)
static unsafe string LongToString(long n, int radix, int width, char paddingChar, int flags)
static long StringToLong(ReadOnlySpan< char > s, int radix, int flags)
static unsafe string IntToString(int n, int radix, int width, char paddingChar, int flags)
static int StringToInt(ReadOnlySpan< char > s, int radix, int flags)
static string ArgumentOutOfRange_Index
static string Format_BadHexLength
static string Overflow_Int16
static string Overflow_UInt16
static string Arg_UnknownTypeCode
static string InvalidCast_FromTo
static string Overflow_Int32
static string Overflow_SByte
static string InvalidCast_CannotCastNullToValueType
static string Overflow_UInt64
static string Arg_EnumIllegalVal
static string Format(string resourceFormat, object p1)
static string Arg_InvalidBase
static string Format_BadBase64Char
static string Overflow_Int64
static string Format_NeedSingleChar
static string InvalidCast_IConvertible
static string Overflow_Byte
static string InvalidCast_Empty
static string InvalidCast_DBNull
static string ArgumentOutOfRange_GenericPositive
static string Overflow_Char
static string ArgumentOutOfRange_OffsetOut
static string ArgumentOutOfRange_OffsetLength
static string Overflow_UInt32
static string ArgumentOutOfRange_InputTooLarge
static string Format_BadHexChar
static void ThrowArgumentNullException(string name)
static readonly DateTime MinValue
static DateTime Parse(string s)
Span< T > Slice(int start)