@@ -2046,7 +2046,7 @@ public static string ToString(DateTime value, IFormatProvider? provider)
2046
2046
//
2047
2047
// Parses value in base base. base can only
2048
2048
// be 2, 8, 10, or 16. If base is 16, the number may be preceded
2049
- // by 0x; any other leading or trailing characters cause an error.
2049
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2050
2050
//
2051
2051
public static byte ToByte ( string ? value , int fromBase )
2052
2052
{
@@ -2068,7 +2068,7 @@ public static byte ToByte(string? value, int fromBase)
2068
2068
2069
2069
// Parses value in base fromBase. fromBase can only
2070
2070
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2071
- // by 0x; any other leading or trailing characters cause an error.
2071
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2072
2072
//
2073
2073
[ CLSCompliant ( false ) ]
2074
2074
public static sbyte ToSByte ( string ? value , int fromBase )
@@ -2094,7 +2094,7 @@ public static sbyte ToSByte(string? value, int fromBase)
2094
2094
2095
2095
// Parses value in base fromBase. fromBase can only
2096
2096
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2097
- // by 0x; any other leading or trailing characters cause an error.
2097
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2098
2098
//
2099
2099
public static short ToInt16 ( string ? value , int fromBase )
2100
2100
{
@@ -2119,7 +2119,7 @@ public static short ToInt16(string? value, int fromBase)
2119
2119
2120
2120
// Parses value in base fromBase. fromBase can only
2121
2121
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2122
- // by 0x; any other leading or trailing characters cause an error.
2122
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2123
2123
//
2124
2124
[ CLSCompliant ( false ) ]
2125
2125
public static ushort ToUInt16 ( string ? value , int fromBase )
@@ -2142,7 +2142,7 @@ public static ushort ToUInt16(string? value, int fromBase)
2142
2142
2143
2143
// Parses value in base fromBase. fromBase can only
2144
2144
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2145
- // by 0x; any other leading or trailing characters cause an error.
2145
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2146
2146
//
2147
2147
public static int ToInt32 ( string ? value , int fromBase )
2148
2148
{
@@ -2157,7 +2157,7 @@ public static int ToInt32(string? value, int fromBase)
2157
2157
2158
2158
// Parses value in base fromBase. fromBase can only
2159
2159
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2160
- // by 0x; any other leading or trailing characters cause an error.
2160
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2161
2161
//
2162
2162
[ CLSCompliant ( false ) ]
2163
2163
public static uint ToUInt32 ( string ? value , int fromBase )
@@ -2173,7 +2173,7 @@ public static uint ToUInt32(string? value, int fromBase)
2173
2173
2174
2174
// Parses value in base fromBase. fromBase can only
2175
2175
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2176
- // by 0x; any other leading or trailing characters cause an error.
2176
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2177
2177
//
2178
2178
public static long ToInt64 ( string ? value , int fromBase )
2179
2179
{
@@ -2188,7 +2188,7 @@ public static long ToInt64(string? value, int fromBase)
2188
2188
2189
2189
// Parses value in base fromBase. fromBase can only
2190
2190
// be 2, 8, 10, or 16. If fromBase is 16, the number may be preceded
2191
- // by 0x; any other leading or trailing characters cause an error.
2191
+ // by 0x or 0X ; any other leading or trailing characters cause an error.
2192
2192
//
2193
2193
[ CLSCompliant ( false ) ]
2194
2194
public static ulong ToUInt64 ( string ? value , int fromBase )
@@ -2202,11 +2202,11 @@ public static ulong ToUInt64(string? value, int fromBase)
2202
2202
0 ;
2203
2203
}
2204
2204
2205
- // Convert the byte value to a string in base fromBase
2205
+ // Convert the byte value to a string in base toBase
2206
2206
public static string ToString ( byte value , int toBase ) =>
2207
2207
ToString ( ( int ) value , toBase ) ;
2208
2208
2209
- // Convert the Int16 value to a string in base fromBase
2209
+ // Convert the Int16 value to a string in base toBase
2210
2210
public static string ToString ( short value , int toBase )
2211
2211
{
2212
2212
string format = "d" ;
0 commit comments