Convert Convert Convert Convert Class

定义

将一个基本数据类型转换为另一个基本数据类型。Converts a base data type to another base data type.

public ref class Convert abstract sealed
public static class Convert
type Convert = class
Public Class Convert
继承
ConvertConvertConvertConvert

示例

以下示例演示了部分中的转换方法Convert类,其中包括ToInt32ToBoolean,和ToStringThe following example demonstrates some of the conversion methods in the Convert class, including ToInt32, ToBoolean, and ToString.

Double dNumber = 23.15;

try
{
   // Returns 23
   Int32 iNumber = Convert::ToInt32( dNumber );
}
catch ( OverflowException^ ) 
{
   Console::WriteLine(
      "Overflow in Double to Int32 conversion" );
}
// Returns True
Boolean bNumber = Convert::ToBoolean( dNumber );

// Returns "23.15"
String^ strNumber = Convert::ToString( dNumber );

try
{
   // Returns '2'
   Char chrNumber = Convert::ToChar( strNumber->Substring( 0, 1 ) );
}
catch ( ArgumentNullException^ ) 
{
   Console::WriteLine(  "String is null" );
}
catch ( FormatException^ ) 
{
   Console::WriteLine(  "String length is greater than 1" );
}

// System::Console::ReadLine() returns a string and it
// must be converted.
Int32 newInteger = 0;
try
{
   Console::WriteLine(  "Enter an integer:" );
   newInteger = Convert::ToInt32( System::Console::ReadLine() );
}
catch ( ArgumentNullException^ ) 
{
   Console::WriteLine(  "String is null" );
}
catch ( FormatException^ ) 
{
   Console::WriteLine(  "String does not consist of an " +
      "optional sign followed by a series of digits" );
}
catch ( OverflowException^ ) 
{
   Console::WriteLine(  "Overflow in string to Int32 conversion" );
}

Console::WriteLine( "Your integer as a Double is {0}",
   Convert::ToDouble( newInteger ) );
double dNumber = 23.15;

try {
	// Returns 23
	int    iNumber = System.Convert.ToInt32(dNumber);
}
catch (System.OverflowException) {
	System.Console.WriteLine(
				"Overflow in double to int conversion.");
}
// Returns True
bool   bNumber = System.Convert.ToBoolean(dNumber);

// Returns "23.15"
string strNumber = System.Convert.ToString(dNumber);

try {
	// Returns '2'
	char chrNumber = System.Convert.ToChar(strNumber[0]);
} 
catch (System.ArgumentNullException) {
	System.Console.WriteLine("String is null");
}
catch (System.FormatException) {
	System.Console.WriteLine("String length is greater than 1.");
}

// System.Console.ReadLine() returns a string and it
// must be converted.
int newInteger = 0;
try {
	System.Console.WriteLine("Enter an integer:");
	newInteger = System.Convert.ToInt32(
						System.Console.ReadLine());
}
catch (System.ArgumentNullException) {
	System.Console.WriteLine("String is null.");
}
catch (System.FormatException) {
	System.Console.WriteLine("String does not consist of an " +
					"optional sign followed by a series of digits.");
} 
catch (System.OverflowException) {
	System.Console.WriteLine(
	"Overflow in string to int conversion.");
}

System.Console.WriteLine("Your integer as a double is {0}",
						 System.Convert.ToDouble(newInteger));
Dim dNumber As Double
dNumber = 23.15

Try
   ' Returns 23
   Dim iNumber As Integer
   iNumber = System.Convert.ToInt32(dNumber)
Catch exp As System.OverflowException
   System.Console.WriteLine("Overflow in double to int conversion.")
End Try

' Returns True
Dim bNumber As Boolean
bNumber = System.Convert.ToBoolean(dNumber)

' Returns "23.15"
Dim strNumber As String
strNumber = System.Convert.ToString(dNumber)

Try
   ' Returns '2'
   Dim chrNumber As Char
   chrNumber = System.Convert.ToChar(strNumber.Chars(1))
Catch exp As System.ArgumentNullException
   System.Console.WriteLine("String is null.")
Catch exp As System.FormatException
   System.Console.WriteLine("String length is greater than 1.")
End Try

' System.Console.ReadLine() returns a string and it
' must be converted.
Dim newInteger As Integer
newInteger = 0
Try
   System.Console.WriteLine("Enter an integer:")
   newInteger = System.Convert.ToInt32(System.Console.ReadLine())
Catch exp As System.ArgumentNullException
   System.Console.WriteLine("String is null.")
Catch exp As System.FormatException
   System.Console.WriteLine("String does not consist of an " + _
       "optional sign followed by a series of digits.")
Catch exp As System.OverflowException
   System.Console.WriteLine("Overflow in string to int conversion.")
End Try

System.Console.WriteLine("Your integer as a double is {0}", _
                         System.Convert.ToDouble(newInteger))

注解

静态方法Convert类主要用于在.NET Framework 中支持基本数据类型之间的转换。The static methods of the Convert class are primarily used to support conversion to and from the base data types in the .NET Framework. 支持的基类型为BooleanCharSByteByteInt16Int32Int64UInt16UInt32UInt64SingleDoubleDecimalDateTimeStringThe supported base types are Boolean, Char, SByte, Byte, Int16, Int32, Int64, UInt16, UInt32, UInt64, Single, Double, Decimal, DateTime and String. 此外,Convert类包含方法以支持其他类型的转换。In addition, the Convert class includes methods to support other kinds of conversions.

本主题包括以下各节:This topic consists of the following sections:

基类型之间的转换 Conversions to and from Base Types
非十进制数字 Non-Decimal Numbers
从自定义对象转换为基类型 Conversions from Custom Objects to Base Types
特定于区域性的格式设置信息 Culture-Specific Formatting Information
Base64 编码 Base64 Encoding
其他常见的转换Other Common Conversions

基类型之间的转换Conversions to and from Base Types

转换方法的目的是将每个基类型转换为其他每个基类型。A conversion method exists to convert every base type to every other base type. 但是,对特定的转换方法的实际调用可生成五个结果,具体取决于在运行时的基类型和目标基类型的值中的一个。However, the actual call to a particular conversion method can produce one of five outcomes, depending on the value of the base type at run time and the target base type. 这五个结果如下:These five outcomes are:

  • 不进行转换。No conversion. 发生这种情况时尝试从一个类型转换到其自身 (例如,通过调用Convert.ToInt32(Int32)类型的自变量与Int32)。This occurs when an attempt is made to convert from a type to itself (for example, by calling Convert.ToInt32(Int32) with an argument of type Int32). 在这种情况下,该方法只需返回原始类型的实例。In this case, the method simply returns an instance of the original type.

  • 一个 InvalidCastExceptionAn InvalidCastException. 不支持特定的转换时,将发生这种情况。This occurs when a particular conversion is not supported. InvalidCastException引发以下转换:An InvalidCastException is thrown for the following conversions:

  • FormatExceptionA FormatException. 将字符串值转换为其他任何基类型的尝试会失败,因为字符串未采用正确格式时,将发生这种情况。This occurs when the attempt to convert a string value to any other base type fails because the string is not in the proper format. 以下转换会引发异常:The exception is thrown for the following conversions:

    • 一个字符串,转换到Boolean值不等于Boolean.TrueStringBoolean.FalseStringA string to be converted to a Boolean value does not equal Boolean.TrueString or Boolean.FalseString.

    • 一个字符串,转换到Char值包含的多个字符。A string to be converted to a Char value consists of multiple characters.

    • 要转换为任何数值类型的字符串未被识别为有效数字。A string to be converted to any numeric type is not recognized as a valid number.

    • 一个字符串,转换到DateTime未被识别为有效的日期和时间值。A string to be converted to a DateTime is not recognized as a valid date and time value.

  • 成功的转换。A successful conversion. 对于未在前面的结果中列出的两个不同的基类型之间转换,所有的扩大转换,以及所有不会导致数据丢失的收缩转换将成功,并且该方法将返回目标的基类型的值。For conversions between two different base types not listed in the previous outcomes, all widening conversions as well as all narrowing conversions that do not result in a loss of data will succeed and the method will return a value of the targeted base type.

  • 一个 OverflowExceptionAn OverflowException. 在数据丢失的收缩转换结果时,将发生这种情况。This occurs when a narrowing conversion results in a loss of data. 例如,尝试将转换Int32实例,其值是 10000 到Byte类型,则会引发OverflowException因为 10000 的范围之外Byte数据类型。For example, trying to convert a Int32 instance whose value is 10000 to a Byte type throws an OverflowException because 10000 is outside the range of the Byte data type.

如果数值类型的转换会导致丢失精度 (即,丢失某些最小有效位),则不会引发异常。An exception will not be thrown if the conversion of a numeric type results in a loss of precision (that is, the loss of some least significant digits). 但是,如果结果为不是特定的转换方法的返回值类型可以表示更大,则将引发异常。However, an exception will be thrown if the result is larger than can be represented by the particular conversion method's return value type.

例如,当Double转换为Single,可能发生精度损失,但不会引发异常。For example, when a Double is converted to a Single, a loss of precision might occur but no exception is thrown. 但是,如果的量Double太大而无法由表示Single,将引发溢出异常。However, if the magnitude of the Double is too large to be represented by a Single, an overflow exception is thrown.

非十进制数字Non-Decimal Numbers

Convert类包含静态方法可以调用以将整数值转换为非十进制字符串表示形式,并且将转换字符串到整数值,表示非十进制数字。The Convert class includes static methods that you can call to convert integral values to non-decimal string representations, and to convert strings that represent non-decimal numbers to integral values. 每个转换方法包含base允许您指定的数字系统; 二进制 (基数为 2)、 八进制 (基数为 8) 和十六进制 (基数为 16),以及十进制 (基数为 10) 的参数。Each of these conversion methods includes a base argument that lets you specify the number system; binary (base 2), octal (base 8), and hexadecimal (base 16), as well as decimal (base 10). 还有一组方法来将每个符合 CLS 規格基元整型类型转换为一个字符串,另一个用于将字符串转换为每个基元整型类型:There is a set of methods to convert each of the CLS-compliant primitive integral types to a string, and one to convert a string to each of the primitive integral types:

下面的示例将的值转换Int16.MaxValue到字符串中所有受支持的数字格式。The following example converts the value of Int16.MaxValue to a string in all supported numeric formats. 然后,它将转换的字符串值返回到Int16值。It then converts the string value back to a Int16 value.

using namespace System;

void main()
{
   array<int>^ baseValues = { 2, 8, 10, 16 };
   Int16 value = Int16::MaxValue;
   for each (Int16 baseValue in baseValues) {
      String^ s = Convert::ToString(value, baseValue);
      Int16 value2 = Convert::ToInt16(s, baseValue);

      Console::WriteLine("{0} --> {1} (base {2}) --> {3}", 
                        value, s, baseValue, value2);
   }                     
}
// The example displays the following output:
//     32767 --> 111111111111111 (base 2) --> 32767
//     32767 --> 77777 (base 8) --> 32767
//     32767 --> 32767 (base 10) --> 32767
//     32767 --> 7fff (base 16) --> 32767
using System;

public class Example
{
   public static void Main()
   {
      int[] baseValues = { 2, 8, 10, 16 };
      short value = Int16.MaxValue;
      foreach (var baseValue in baseValues) {
         String s = Convert.ToString(value, baseValue);
         short value2 = Convert.ToInt16(s, baseValue);

         Console.WriteLine("{0} --> {1} (base {2}) --> {3}", 
                           value, s, baseValue, value2);
      }                     
   }
}
// The example displays the following output:
//     32767 --> 111111111111111 (base 2) --> 32767
//     32767 --> 77777 (base 8) --> 32767
//     32767 --> 32767 (base 10) --> 32767
//     32767 --> 7fff (base 16) --> 32767
Module Example
   Public Sub Main()
      Dim baseValues() As Integer = { 2, 8, 10, 16 }
      Dim value As Short = Int16.MaxValue
      For Each baseValue in baseValues
         Dim s As String = Convert.ToString(value, baseValue)
         Dim value2 As Short = Convert.ToInt16(s, baseValue)

         Console.WriteLine("{0} --> {1} (base {2}) --> {3}", 
                           value, s, baseValue, value2)
      Next
   End Sub
End Module
' The example displays the following output:
'     32767 --> 111111111111111 (base 2) --> 32767
'     32767 --> 77777 (base 8) --> 32767
'     32767 --> 32767 (base 10) --> 32767
'     32767 --> 7fff (base 16) --> 32767

从自定义对象转换为基类型Conversions from Custom Objects to Base Types

除了支持中基类型之间的转换Convert方法支持的任何自定义类型转换为任何基类型。In addition to supporting conversions between the base types, the Convert method supports conversion of any custom type to any base type. 若要执行此操作,自定义的类型必须实现IConvertible接口,定义用于将实现类型转换为每个基类型的方法。To do this, the custom type must implement the IConvertible interface, which defines methods for converting the implementing type to each of the base types. 不支持特定类型的转换应引发InvalidCastExceptionConversions that are not supported by a particular type should throw an InvalidCastException.

ChangeType方法作为其第一个参数传递的自定义类型时,或者当Convert.To类型方法 (如Convert.ToInt32(Object)Convert.ToDouble(Object, IFormatProvider)调用和作为其第一个传递自定义类型的实例参数,Convert方法中,依次调用自定义类型IConvertible实现来执行此转换。When the ChangeType method is passed a custom type as its first parameter, or when the Convert.ToType method (such as Convert.ToInt32(Object) or Convert.ToDouble(Object, IFormatProvider) is called and passed an instance of a custom type as its first parameter, the Convert method, in turn, calls the custom type's IConvertible implementation to perform the conversion. 有关详细信息,请参阅.NET Framework 中的类型转换For more information, see Type Conversion in the .NET Framework.

特定于区域性的格式设置信息Culture-Specific Formatting Information

所有基类型转换方法和ChangeType方法包含具有类型的参数的重载IFormatProviderAll the base type conversion methods and the ChangeType method include overloads that have a parameter of type IFormatProvider. 例如,Convert.ToBoolean方法有以下两个重载:For example, the Convert.ToBoolean method has the following two overloads:

IFormatProvider参数可以提供特定于区域性的格式设置信息以帮助转换过程。The IFormatProvider parameter can supply culture-specific formatting information to assist the conversion process. 但是,它会忽略大多数的基类型转换方法。However, it is ignored by most of the base type conversion methods. 它仅供以下基类型转换方法。如果nullIFormatProvider自变量传递给这些方法,CultureInfo使用表示当前线程区域性的对象。It is used only by the following base type conversion methods.If a nullIFormatProvider argument is passed to these methods, the CultureInfo object that represents the current thread culture is used.

但是,任何用户定义类型的实现IConvertible可以进行利用IFormatProvider参数。However, any user-defined type that implements IConvertible can make use of the IFormatProvider parameter.

Base64 编码Base64 Encoding

Base64 编码转换为字符串的二进制数据。Base64 encoding converts binary data to a string. 以 base-64 位数字表示的数据可以很容易地通过仅可以传输 7 位字符的数据通道。Data expressed as base-64 digits can be easily conveyed over data channels that can only transmit 7-bit characters. Convert类包括以下方法来支持 base64 编码:方法支持来回转换的字节数组的一组String或者向 / 从 base 64 数字字符组成的 Unicode 字符数组。The Convert class includes the following methods to support base64 encoding: A set of methods support converting an array of bytes to and from a String or to and from an array of Unicode characters consisting of base-64 digit characters.

其他常见的转换Other Common Conversions

可以使用其他类在.NET Framework 中执行的静态方法不支持某些转换Convert类。You can use other classes in the NET Framework to perform some conversions that are not supported by the static methods of the Convert class. 这些方法包括:These include:

转换为字节数组Conversion to byte arrays
BitConverter类提供了将基元数值类型转换的方法 (包括Boolean) 到字节数组,并从字节数组返回给基元数据类型。The BitConverter class provides methods that convert the primitive numeric types (including Boolean) to byte arrays and from byte arrays back to primitive data types.

字符编码和解码Character encoding and decoding
Encoding类和其派生的类 (如UnicodeEncodingUTF8Encoding) 提供多种方法来进行编码的字符数组或字符串 (即,若要将它们转换为特定编码的字节数组) 和进行解码已编码的字节 (即,数组将字节数组转换为 UTF16 编码的 Unicode 字符。The Encoding class and its derived classes (such as UnicodeEncoding and UTF8Encoding) provide methods to encode a character array or a string (that is, to convert them to a byte array in a particular encoding) and to decode an encoded byte array (that is, convert a byte array back to UTF16-encoded Unicode characters. 有关详细信息,请参阅.NET Framework 中的字符编码For more information, see Character Encoding in the .NET Framework

字段

DBNull DBNull DBNull DBNull

一个常数,用于表示没有数据的数据库列;即数据库为空。A constant that represents a database column that is absent of data; that is, database null.

方法

ChangeType(Object, Type) ChangeType(Object, Type) ChangeType(Object, Type) ChangeType(Object, Type)

返回一个指定类型的对象,该对象的值等效于指定的对象。Returns an object of the specified type and whose value is equivalent to the specified object.

ChangeType(Object, TypeCode) ChangeType(Object, TypeCode) ChangeType(Object, TypeCode) ChangeType(Object, TypeCode)

返回指定类型的对象,其值等效于指定对象。Returns an object of the specified type whose value is equivalent to the specified object.

ChangeType(Object, Type, IFormatProvider) ChangeType(Object, Type, IFormatProvider) ChangeType(Object, Type, IFormatProvider) ChangeType(Object, Type, IFormatProvider)

返回指定类型的对象,其值等效于指定对象。Returns an object of the specified type whose value is equivalent to the specified object. 参数提供区域性特定的格式设置信息。A parameter supplies culture-specific formatting information.

ChangeType(Object, TypeCode, IFormatProvider) ChangeType(Object, TypeCode, IFormatProvider) ChangeType(Object, TypeCode, IFormatProvider) ChangeType(Object, TypeCode, IFormatProvider)

返回指定类型的对象,其值等效于指定对象。Returns an object of the specified type whose value is equivalent to the specified object. 参数提供区域性特定的格式设置信息。A parameter supplies culture-specific formatting information.

FromBase64CharArray(Char[], Int32, Int32) FromBase64CharArray(Char[], Int32, Int32) FromBase64CharArray(Char[], Int32, Int32) FromBase64CharArray(Char[], Int32, Int32)

将 Unicode 字符数组(它将二进制数据编码为 Base64 数字)的子集转换为等效的 8 位无符号整数数组。Converts a subset of a Unicode character array, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array. 参数指定输入数组的子集以及要转换的元素数。Parameters specify the subset in the input array and the number of elements to convert.

FromBase64String(String) FromBase64String(String) FromBase64String(String) FromBase64String(String)

将指定的字符串(它将二进制数据编码为 Base64 数字)转换为等效的 8 位无符号整数数组。Converts the specified string, which encodes binary data as base-64 digits, to an equivalent 8-bit unsigned integer array.

GetTypeCode(Object) GetTypeCode(Object) GetTypeCode(Object) GetTypeCode(Object)

返回指定对象的 TypeCodeReturns the TypeCode for the specified object.

IsDBNull(Object) IsDBNull(Object) IsDBNull(Object) IsDBNull(Object)

返回有关指定对象是否为 DBNull 类型的指示。Returns an indication whether the specified object is of type DBNull.

ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32)

将 8 位无符号整数数组的子集转换为用 Base64 数字编码的 Unicode 字符数组的等价子集。Converts a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array encoded with base-64 digits. 参数将子集指定为输入和输出数组中的偏移量和输入数组中要转换的元素数。Parameters specify the subsets as offsets in the input and output arrays, and the number of elements in the input array to convert.

ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32, Base64FormattingOptions) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32, Base64FormattingOptions) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32, Base64FormattingOptions) ToBase64CharArray(Byte[], Int32, Int32, Char[], Int32, Base64FormattingOptions)

将 8 位无符号整数数组的子集转换为用 Base64 数字编码的 Unicode 字符数组的等价子集。Converts a subset of an 8-bit unsigned integer array to an equivalent subset of a Unicode character array encoded with base-64 digits. 参数指定作为输入和输出数组中偏移量的子集、输入数组中要转换的元素数以及是否在输出数组中插入分行符。Parameters specify the subsets as offsets in the input and output arrays, the number of elements in the input array to convert, and whether line breaks are inserted in the output array.

ToBase64String(Byte[], Int32, Int32, Base64FormattingOptions) ToBase64String(Byte[], Int32, Int32, Base64FormattingOptions) ToBase64String(Byte[], Int32, Int32, Base64FormattingOptions) ToBase64String(Byte[], Int32, Int32, Base64FormattingOptions)

将 8 位无符号整数数组的子集转换为其用 Base64 数字编码的等效字符串表示形式。Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. 参数指定作为输入数组中偏移量的子集、数组中要转换的元素数以及是否在返回值中插入分行符。Parameters specify the subset as an offset in the input array, the number of elements in the array to convert, and whether to insert line breaks in the return value.

ToBase64String(Byte[], Int32, Int32) ToBase64String(Byte[], Int32, Int32) ToBase64String(Byte[], Int32, Int32) ToBase64String(Byte[], Int32, Int32)

将 8 位无符号整数数组的子集转换为其用 Base64 数字编码的等效字符串表示形式。Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. 参数将子集指定为输入数组中的偏移量和数组中要转换的元素数。Parameters specify the subset as an offset in the input array, and the number of elements in the array to convert.

ToBase64String(Byte[], Base64FormattingOptions) ToBase64String(Byte[], Base64FormattingOptions) ToBase64String(Byte[], Base64FormattingOptions) ToBase64String(Byte[], Base64FormattingOptions)

将 8 位无符号整数的数组转换为其用 Base64 数字编码的等效字符串表示形式。Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. 参数指定是否在返回值中插入分行符。A parameter specifies whether to insert line breaks in the return value.

ToBase64String(Byte[]) ToBase64String(Byte[]) ToBase64String(Byte[]) ToBase64String(Byte[])

将 8 位无符号整数的数组转换为其用 Base64 数字编码的等效字符串表示形式。Converts an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits.

ToBase64String(ReadOnlySpan<Byte>, Base64FormattingOptions) ToBase64String(ReadOnlySpan<Byte>, Base64FormattingOptions) ToBase64String(ReadOnlySpan<Byte>, Base64FormattingOptions) ToBase64String(ReadOnlySpan<Byte>, Base64FormattingOptions)
ToBoolean(SByte) ToBoolean(SByte) ToBoolean(SByte) ToBoolean(SByte)

将指定的 8 位有符号整数的值转换为等效的布尔值。Converts the value of the specified 8-bit signed integer to an equivalent Boolean value.

ToBoolean(String, IFormatProvider) ToBoolean(String, IFormatProvider) ToBoolean(String, IFormatProvider) ToBoolean(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将逻辑值的指定字符串表示形式转换为其等效的布尔值。Converts the specified string representation of a logical value to its Boolean equivalent, using the specified culture-specific formatting information.

ToBoolean(Object, IFormatProvider) ToBoolean(Object, IFormatProvider) ToBoolean(Object, IFormatProvider) ToBoolean(Object, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定对象的值转换为等效的布尔值。Converts the value of the specified object to an equivalent Boolean value, using the specified culture-specific formatting information.

ToBoolean(UInt64) ToBoolean(UInt64) ToBoolean(UInt64) ToBoolean(UInt64)

将指定的 64 位无符号整数的值转换为等效的布尔值。Converts the value of the specified 64-bit unsigned integer to an equivalent Boolean value.

ToBoolean(UInt32) ToBoolean(UInt32) ToBoolean(UInt32) ToBoolean(UInt32)

将指定的 32 位无符号整数的值转换为等效的布尔值。Converts the value of the specified 32-bit unsigned integer to an equivalent Boolean value.

ToBoolean(UInt16) ToBoolean(UInt16) ToBoolean(UInt16) ToBoolean(UInt16)

将指定的 16 位无符号整数的值转换为等效的布尔值。Converts the value of the specified 16-bit unsigned integer to an equivalent Boolean value.

ToBoolean(String) ToBoolean(String) ToBoolean(String) ToBoolean(String)

将逻辑值的指定字符串表示形式转换为其等效的布尔值。Converts the specified string representation of a logical value to its Boolean equivalent.

ToBoolean(Single) ToBoolean(Single) ToBoolean(Single) ToBoolean(Single)

将指定的单精度浮点数的值转换为等效的布尔值。Converts the value of the specified single-precision floating-point number to an equivalent Boolean value.

ToBoolean(Object) ToBoolean(Object) ToBoolean(Object) ToBoolean(Object)

将指定对象的值转换为等效的布尔值。Converts the value of a specified object to an equivalent Boolean value.

ToBoolean(Double) ToBoolean(Double) ToBoolean(Double) ToBoolean(Double)

将指定的双精度浮点数的值转换为等效的布尔值。Converts the value of the specified double-precision floating-point number to an equivalent Boolean value.

ToBoolean(Int32) ToBoolean(Int32) ToBoolean(Int32) ToBoolean(Int32)

将指定的 32 位有符号整数的值转换为等效的布尔值。Converts the value of the specified 32-bit signed integer to an equivalent Boolean value.

ToBoolean(Int16) ToBoolean(Int16) ToBoolean(Int16) ToBoolean(Int16)

将指定的 16 位有符号整数的值转换为等效的布尔值。Converts the value of the specified 16-bit signed integer to an equivalent Boolean value.

ToBoolean(Decimal) ToBoolean(Decimal) ToBoolean(Decimal) ToBoolean(Decimal)

将指定的十进制数字的值转换为等效的布尔值。Converts the value of the specified decimal number to an equivalent Boolean value.

ToBoolean(DateTime) ToBoolean(DateTime) ToBoolean(DateTime) ToBoolean(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToBoolean(Char) ToBoolean(Char) ToBoolean(Char) ToBoolean(Char)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToBoolean(Byte) ToBoolean(Byte) ToBoolean(Byte) ToBoolean(Byte)

将指定的 8 位无符号整数的值转换为等效的布尔值。Converts the value of the specified 8-bit unsigned integer to an equivalent Boolean value.

ToBoolean(Boolean) ToBoolean(Boolean) ToBoolean(Boolean) ToBoolean(Boolean)

返回指定的布尔值;不执行任何实际的转换。Returns the specified Boolean value; no actual conversion is performed.

ToBoolean(Int64) ToBoolean(Int64) ToBoolean(Int64) ToBoolean(Int64)

将指定的 64 位有符号整数的值转换为等效的布尔值。Converts the value of the specified 64-bit signed integer to an equivalent Boolean value.

ToByte(String) ToByte(String) ToByte(String) ToByte(String)

将数字的指定字符串表示形式转换为等效的 8 位无符号整数。Converts the specified string representation of a number to an equivalent 8-bit unsigned integer.

ToByte(UInt16) ToByte(UInt16) ToByte(UInt16) ToByte(UInt16)

将指定的 16 位无符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 16-bit unsigned integer to an equivalent 8-bit unsigned integer.

ToByte(UInt32) ToByte(UInt32) ToByte(UInt32) ToByte(UInt32)

将指定的 32 位无符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit unsigned integer.

ToByte(String, Int32) ToByte(String, Int32) ToByte(String, Int32) ToByte(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 8 位无符号整数。Converts the string representation of a number in a specified base to an equivalent 8-bit unsigned integer.

ToByte(Object, IFormatProvider) ToByte(Object, IFormatProvider) ToByte(Object, IFormatProvider) ToByte(Object, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定对象的值转换为 8 位无符号整数。Converts the value of the specified object to an 8-bit unsigned integer, using the specified culture-specific formatting information.

ToByte(String, IFormatProvider) ToByte(String, IFormatProvider) ToByte(String, IFormatProvider) ToByte(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 8 位无符号整数。Converts the specified string representation of a number to an equivalent 8-bit unsigned integer, using specified culture-specific formatting information.

ToByte(Single) ToByte(Single) ToByte(Single) ToByte(Single)

将指定的单精度浮点数的值转换为等效的 8 位无符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 8-bit unsigned integer.

ToByte(UInt64) ToByte(UInt64) ToByte(UInt64) ToByte(UInt64)

将指定的 64 位无符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit unsigned integer.

ToByte(SByte) ToByte(SByte) ToByte(SByte) ToByte(SByte)

将指定的 8 位有符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 8-bit signed integer to an equivalent 8-bit unsigned integer.

ToByte(Double) ToByte(Double) ToByte(Double) ToByte(Double)

将指定的双精度浮点数的值转换为等效的 8 位无符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 8-bit unsigned integer.

ToByte(Int64) ToByte(Int64) ToByte(Int64) ToByte(Int64)

将指定的 64 位有符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 8-bit unsigned integer.

ToByte(Byte) ToByte(Byte) ToByte(Byte) ToByte(Byte)

返回指定的 8 位无符号整数;不执行任何实际的转换。Returns the specified 8-bit unsigned integer; no actual conversion is performed.

ToByte(Char) ToByte(Char) ToByte(Char) ToByte(Char)

将指定 Unicode 字符的值转换为等效的 8 位无符号整数。Converts the value of the specified Unicode character to the equivalent 8-bit unsigned integer.

ToByte(DateTime) ToByte(DateTime) ToByte(DateTime) ToByte(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToByte(Boolean) ToByte(Boolean) ToByte(Boolean) ToByte(Boolean)

将指定的布尔值转换为等效的 8 位无符号整数。Converts the specified Boolean value to the equivalent 8-bit unsigned integer.

ToByte(Int16) ToByte(Int16) ToByte(Int16) ToByte(Int16)

将指定的 16 位有符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 16-bit signed integer to an equivalent 8-bit unsigned integer.

ToByte(Int32) ToByte(Int32) ToByte(Int32) ToByte(Int32)

将指定的 32 位有符号整数的值转换为等效的 8 位无符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 8-bit unsigned integer.

ToByte(Decimal) ToByte(Decimal) ToByte(Decimal) ToByte(Decimal)

将指定的十进制数的值转换为等效的 8 位无符号整数。Converts the value of the specified decimal number to an equivalent 8-bit unsigned integer.

ToByte(Object) ToByte(Object) ToByte(Object) ToByte(Object)

将指定对象的值转换为 8 位无符号整数。Converts the value of the specified object to an 8-bit unsigned integer.

ToChar(String, IFormatProvider) ToChar(String, IFormatProvider) ToChar(String, IFormatProvider) ToChar(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定字符串的第一个字符转换为 Unicode 字符。Converts the first character of a specified string to a Unicode character, using specified culture-specific formatting information.

ToChar(Object) ToChar(Object) ToChar(Object) ToChar(Object)

将指定对象的值转换为 Unicode 字符。Converts the value of the specified object to a Unicode character.

ToChar(Object, IFormatProvider) ToChar(Object, IFormatProvider) ToChar(Object, IFormatProvider) ToChar(Object, IFormatProvider)

使用指定的区域性特定格式设置信息将指定对象的值转换为其等效的 Unicode 字符。Converts the value of the specified object to its equivalent Unicode character, using the specified culture-specific formatting information.

ToChar(UInt64) ToChar(UInt64) ToChar(UInt64) ToChar(UInt64)

将指定的 64 位无符号整数的值转换为其等效的 Unicode 字符。Converts the value of the specified 64-bit unsigned integer to its equivalent Unicode character.

ToChar(UInt32) ToChar(UInt32) ToChar(UInt32) ToChar(UInt32)

将指定的 32 位无符号整数的值转换为其等效的 Unicode 字符。Converts the value of the specified 32-bit unsigned integer to its equivalent Unicode character.

ToChar(UInt16) ToChar(UInt16) ToChar(UInt16) ToChar(UInt16)

将指定的 16 位无符号整数的值转换为其等效的 Unicode 字符。Converts the value of the specified 16-bit unsigned integer to its equivalent Unicode character.

ToChar(String) ToChar(String) ToChar(String) ToChar(String)

将指定字符串的第一个字符转换为 Unicode 字符。Converts the first character of a specified string to a Unicode character.

ToChar(Single) ToChar(Single) ToChar(Single) ToChar(Single)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToChar(SByte) ToChar(SByte) ToChar(SByte) ToChar(SByte)

将指定的 8 位有符号整数的值转换为它的等效 Unicode 字符。Converts the value of the specified 8-bit signed integer to its equivalent Unicode character.

ToChar(Int64) ToChar(Int64) ToChar(Int64) ToChar(Int64)

将指定的 64 位有符号整数的值转换为它的等效 Unicode 字符。Converts the value of the specified 64-bit signed integer to its equivalent Unicode character.

ToChar(Int16) ToChar(Int16) ToChar(Int16) ToChar(Int16)

将指定的 16 位有符号整数的值转换为它的等效 Unicode 字符。Converts the value of the specified 16-bit signed integer to its equivalent Unicode character.

ToChar(Double) ToChar(Double) ToChar(Double) ToChar(Double)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToChar(Decimal) ToChar(Decimal) ToChar(Decimal) ToChar(Decimal)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToChar(DateTime) ToChar(DateTime) ToChar(DateTime) ToChar(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToChar(Char) ToChar(Char) ToChar(Char) ToChar(Char)

返回指定的 Unicode 字符值;不执行任何实际的转换。Returns the specified Unicode character value; no actual conversion is performed.

ToChar(Byte) ToChar(Byte) ToChar(Byte) ToChar(Byte)

将指定的 8 位无符号整数的值转换为其等效的 Unicode 字符。Converts the value of the specified 8-bit unsigned integer to its equivalent Unicode character.

ToChar(Boolean) ToChar(Boolean) ToChar(Boolean) ToChar(Boolean)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToChar(Int32) ToChar(Int32) ToChar(Int32) ToChar(Int32)

将指定的 32 位有符号整数的值转换为它的等效 Unicode 字符。Converts the value of the specified 32-bit signed integer to its equivalent Unicode character.

ToDateTime(Single) ToDateTime(Single) ToDateTime(Single) ToDateTime(Single)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(String) ToDateTime(String) ToDateTime(String) ToDateTime(String)

将日期和时间的指定字符串表示形式转换为等效的日期和时间值。Converts the specified string representation of a date and time to an equivalent date and time value.

ToDateTime(UInt16) ToDateTime(UInt16) ToDateTime(UInt16) ToDateTime(UInt16)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(String, IFormatProvider) ToDateTime(String, IFormatProvider) ToDateTime(String, IFormatProvider) ToDateTime(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的日期和时间。Converts the specified string representation of a number to an equivalent date and time, using the specified culture-specific formatting information.

ToDateTime(UInt64) ToDateTime(UInt64) ToDateTime(UInt64) ToDateTime(UInt64)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Object, IFormatProvider) ToDateTime(Object, IFormatProvider) ToDateTime(Object, IFormatProvider) ToDateTime(Object, IFormatProvider)

使用指定的区域性特定格式设置信息将指定对象的值转换为 DateTime 对象。Converts the value of the specified object to a DateTime object, using the specified culture-specific formatting information.

ToDateTime(SByte) ToDateTime(SByte) ToDateTime(SByte) ToDateTime(SByte)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(UInt32) ToDateTime(UInt32) ToDateTime(UInt32) ToDateTime(UInt32)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Object) ToDateTime(Object) ToDateTime(Object) ToDateTime(Object)

将指定对象的值转换为 DateTime 对象。Converts the value of the specified object to a DateTime object.

ToDateTime(Double) ToDateTime(Double) ToDateTime(Double) ToDateTime(Double)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Int32) ToDateTime(Int32) ToDateTime(Int32) ToDateTime(Int32)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Boolean) ToDateTime(Boolean) ToDateTime(Boolean) ToDateTime(Boolean)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Byte) ToDateTime(Byte) ToDateTime(Byte) ToDateTime(Byte)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Char) ToDateTime(Char) ToDateTime(Char) ToDateTime(Char)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Int64) ToDateTime(Int64) ToDateTime(Int64) ToDateTime(Int64)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Decimal) ToDateTime(Decimal) ToDateTime(Decimal) ToDateTime(Decimal)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(Int16) ToDateTime(Int16) ToDateTime(Int16) ToDateTime(Int16)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDateTime(DateTime) ToDateTime(DateTime) ToDateTime(DateTime) ToDateTime(DateTime)

返回指定的 DateTime 对象;不执行任何实际的转换。Returns the specified DateTime object; no actual conversion is performed.

ToDecimal(String, IFormatProvider) ToDecimal(String, IFormatProvider) ToDecimal(String, IFormatProvider) ToDecimal(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的十进制数。Converts the specified string representation of a number to an equivalent decimal number, using the specified culture-specific formatting information.

ToDecimal(Object, IFormatProvider) ToDecimal(Object, IFormatProvider) ToDecimal(Object, IFormatProvider) ToDecimal(Object, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定对象的值转换为等效的十进制数。Converts the value of the specified object to an equivalent decimal number, using the specified culture-specific formatting information.

ToDecimal(UInt64) ToDecimal(UInt64) ToDecimal(UInt64) ToDecimal(UInt64)

将指定的 64 位无符号整数的值转换为等效的十进制数。Converts the value of the specified 64-bit unsigned integer to an equivalent decimal number.

ToDecimal(UInt32) ToDecimal(UInt32) ToDecimal(UInt32) ToDecimal(UInt32)

将指定的 32 位无符号整数的值转换为等效的十进制数。Converts the value of the specified 32-bit unsigned integer to an equivalent decimal number.

ToDecimal(UInt16) ToDecimal(UInt16) ToDecimal(UInt16) ToDecimal(UInt16)

将指定的 16 位无符号整数的值转换为等效的十进制数。Converts the value of the specified 16-bit unsigned integer to an equivalent decimal number.

ToDecimal(String) ToDecimal(String) ToDecimal(String) ToDecimal(String)

将数字的指定字符串表示形式转换为等效的十进制数。Converts the specified string representation of a number to an equivalent decimal number.

ToDecimal(SByte) ToDecimal(SByte) ToDecimal(SByte) ToDecimal(SByte)

将指定的 8 位带符号整数的值转换为等效的十进制数。Converts the value of the specified 8-bit signed integer to the equivalent decimal number.

ToDecimal(Object) ToDecimal(Object) ToDecimal(Object) ToDecimal(Object)

将指定对象的值转换为等效的十进制数。Converts the value of the specified object to an equivalent decimal number.

ToDecimal(Single) ToDecimal(Single) ToDecimal(Single) ToDecimal(Single)

将指定的单精度浮点数的值转换为等效的十进制数。Converts the value of the specified single-precision floating-point number to the equivalent decimal number.

ToDecimal(Int32) ToDecimal(Int32) ToDecimal(Int32) ToDecimal(Int32)

将指定的 32 位带符号整数的值转换为等效的十进制数。Converts the value of the specified 32-bit signed integer to an equivalent decimal number.

ToDecimal(Boolean) ToDecimal(Boolean) ToDecimal(Boolean) ToDecimal(Boolean)

将指定的布尔值转换为等效的十进制数。Converts the specified Boolean value to the equivalent decimal number.

ToDecimal(Byte) ToDecimal(Byte) ToDecimal(Byte) ToDecimal(Byte)

将指定的 8 位无符号整数的值转换为等效的十进制数。Converts the value of the specified 8-bit unsigned integer to the equivalent decimal number.

ToDecimal(Char) ToDecimal(Char) ToDecimal(Char) ToDecimal(Char)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDecimal(Int64) ToDecimal(Int64) ToDecimal(Int64) ToDecimal(Int64)

将指定的 64 位带符号整数的值转换为等效的十进制数。Converts the value of the specified 64-bit signed integer to an equivalent decimal number.

ToDecimal(Decimal) ToDecimal(Decimal) ToDecimal(Decimal) ToDecimal(Decimal)

返回指定的十进制数;不执行任何实际的转换。Returns the specified decimal number; no actual conversion is performed.

ToDecimal(Double) ToDecimal(Double) ToDecimal(Double) ToDecimal(Double)

将指定的双精度浮点数的值转换为等效的十进制数。Converts the value of the specified double-precision floating-point number to an equivalent decimal number.

ToDecimal(Int16) ToDecimal(Int16) ToDecimal(Int16) ToDecimal(Int16)

将指定的 16 位带符号整数的值转换为等效的十进制数。Converts the value of the specified 16-bit signed integer to an equivalent decimal number.

ToDecimal(DateTime) ToDecimal(DateTime) ToDecimal(DateTime) ToDecimal(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDouble(SByte) ToDouble(SByte) ToDouble(SByte) ToDouble(SByte)

将指定的 8 位带符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 8-bit signed integer to the equivalent double-precision floating-point number.

ToDouble(Object, IFormatProvider) ToDouble(Object, IFormatProvider) ToDouble(Object, IFormatProvider) ToDouble(Object, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定对象的值转换为双精度浮点数。Converts the value of the specified object to an double-precision floating-point number, using the specified culture-specific formatting information.

ToDouble(UInt64) ToDouble(UInt64) ToDouble(UInt64) ToDouble(UInt64)

将指定的 64 位无符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 64-bit unsigned integer to an equivalent double-precision floating-point number.

ToDouble(UInt32) ToDouble(UInt32) ToDouble(UInt32) ToDouble(UInt32)

将指定的 32 位无符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 32-bit unsigned integer to an equivalent double-precision floating-point number.

ToDouble(UInt16) ToDouble(UInt16) ToDouble(UInt16) ToDouble(UInt16)

将指定的 16 位无符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 16-bit unsigned integer to the equivalent double-precision floating-point number.

ToDouble(String) ToDouble(String) ToDouble(String) ToDouble(String)

将数字的指定字符串表示形式转换为等效的双精度浮点数。Converts the specified string representation of a number to an equivalent double-precision floating-point number.

ToDouble(Single) ToDouble(Single) ToDouble(Single) ToDouble(Single)

将指定的单精度浮点数的值转换为等效的双精度浮点数。Converts the value of the specified single-precision floating-point number to an equivalent double-precision floating-point number.

ToDouble(String, IFormatProvider) ToDouble(String, IFormatProvider) ToDouble(String, IFormatProvider) ToDouble(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的双精度浮点数。Converts the specified string representation of a number to an equivalent double-precision floating-point number, using the specified culture-specific formatting information.

ToDouble(Object) ToDouble(Object) ToDouble(Object) ToDouble(Object)

将指定对象的值转换为双精度浮点数。Converts the value of the specified object to a double-precision floating-point number.

ToDouble(Int32) ToDouble(Int32) ToDouble(Int32) ToDouble(Int32)

将指定的 32 位带符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 32-bit signed integer to an equivalent double-precision floating-point number.

ToDouble(Boolean) ToDouble(Boolean) ToDouble(Boolean) ToDouble(Boolean)

将指定的布尔值转换为等效的双精度浮点数。Converts the specified Boolean value to the equivalent double-precision floating-point number.

ToDouble(Byte) ToDouble(Byte) ToDouble(Byte) ToDouble(Byte)

将指定的 8 位无符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 8-bit unsigned integer to the equivalent double-precision floating-point number.

ToDouble(Char) ToDouble(Char) ToDouble(Char) ToDouble(Char)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToDouble(Int64) ToDouble(Int64) ToDouble(Int64) ToDouble(Int64)

将指定的 64 位带符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 64-bit signed integer to an equivalent double-precision floating-point number.

ToDouble(Decimal) ToDouble(Decimal) ToDouble(Decimal) ToDouble(Decimal)

将指定的十进制数的值转换为等效的双精度浮点数。Converts the value of the specified decimal number to an equivalent double-precision floating-point number.

ToDouble(Double) ToDouble(Double) ToDouble(Double) ToDouble(Double)

返回指定的双精度浮点数;不执行任何实际的转换。Returns the specified double-precision floating-point number; no actual conversion is performed.

ToDouble(Int16) ToDouble(Int16) ToDouble(Int16) ToDouble(Int16)

将指定的 16 位带符号整数的值转换为等效的双精度浮点数。Converts the value of the specified 16-bit signed integer to an equivalent double-precision floating-point number.

ToDouble(DateTime) ToDouble(DateTime) ToDouble(DateTime) ToDouble(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToInt16(SByte) ToInt16(SByte) ToInt16(SByte) ToInt16(SByte)

将指定的 8 位带符号整数的值转换为等效的 16 位带符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 16-bit signed integer.

ToInt16(String, IFormatProvider) ToInt16(String, IFormatProvider) ToInt16(String, IFormatProvider) ToInt16(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 16 位带符号整数。Converts the specified string representation of a number to an equivalent 16-bit signed integer, using the specified culture-specific formatting information.

ToInt16(Object, IFormatProvider) ToInt16(Object, IFormatProvider) ToInt16(Object, IFormatProvider) ToInt16(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 16 位带符号整数。Converts the value of the specified object to a 16-bit signed integer, using the specified culture-specific formatting information.

ToInt16(UInt64) ToInt16(UInt64) ToInt16(UInt64) ToInt16(UInt64)

将指定的 64 位无符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit signed integer.

ToInt16(UInt32) ToInt16(UInt32) ToInt16(UInt32) ToInt16(UInt32)

将指定的 32 位无符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit signed integer.

ToInt16(UInt16) ToInt16(UInt16) ToInt16(UInt16) ToInt16(UInt16)

将指定的 16 位无符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 16-bit signed integer.

ToInt16(String) ToInt16(String) ToInt16(String) ToInt16(String)

将数字的指定字符串表示形式转换为等效的 16 位带符号整数。Converts the specified string representation of a number to an equivalent 16-bit signed integer.

ToInt16(Single) ToInt16(Single) ToInt16(Single) ToInt16(Single)

将指定的单精度浮点数的值转换为等效的 16 位带符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 16-bit signed integer.

ToInt16(String, Int32) ToInt16(String, Int32) ToInt16(String, Int32) ToInt16(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 16 位有符号整数。Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.

ToInt16(Object) ToInt16(Object) ToInt16(Object) ToInt16(Object)

将指定对象的值转换为 16 位带符号整数。Converts the value of the specified object to a 16-bit signed integer.

ToInt16(Int32) ToInt16(Int32) ToInt16(Int32) ToInt16(Int32)

将指定的 32 位有符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 16-bit signed integer.

ToInt16(Int16) ToInt16(Int16) ToInt16(Int16) ToInt16(Int16)

返回指定的 16 位有符号整数;不执行实际的转换。Returns the specified 16-bit signed integer; no actual conversion is performed.

ToInt16(Double) ToInt16(Double) ToInt16(Double) ToInt16(Double)

将指定的双精度浮点数的值转换为等效的 16 位带符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 16-bit signed integer.

ToInt16(Decimal) ToInt16(Decimal) ToInt16(Decimal) ToInt16(Decimal)

将指定的十进制数的值转换为等效的 16 位带符号整数。Converts the value of the specified decimal number to an equivalent 16-bit signed integer.

ToInt16(DateTime) ToInt16(DateTime) ToInt16(DateTime) ToInt16(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToInt16(Char) ToInt16(Char) ToInt16(Char) ToInt16(Char)

将指定的 Unicode 字符的值转换为等效的 16 位有符号整数。Converts the value of the specified Unicode character to the equivalent 16-bit signed integer.

ToInt16(Byte) ToInt16(Byte) ToInt16(Byte) ToInt16(Byte)

将指定的 8 位无符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit signed integer.

ToInt16(Boolean) ToInt16(Boolean) ToInt16(Boolean) ToInt16(Boolean)

将指定的布尔值转换为等效的 16 位带符号整数。Converts the specified Boolean value to the equivalent 16-bit signed integer.

ToInt16(Int64) ToInt16(Int64) ToInt16(Int64) ToInt16(Int64)

将指定的 64 位有符号整数的值转换为等效的 16 位有符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 16-bit signed integer.

ToInt32(Single) ToInt32(Single) ToInt32(Single) ToInt32(Single)

将指定的单精度浮点数的值转换为等效的 32 位带符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 32-bit signed integer.

ToInt32(String) ToInt32(String) ToInt32(String) ToInt32(String)

将数字的指定字符串表示形式转换为等效的 32 位带符号整数。Converts the specified string representation of a number to an equivalent 32-bit signed integer.

ToInt32(UInt32) ToInt32(UInt32) ToInt32(UInt32) ToInt32(UInt32)

将指定的 32 位无符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 32-bit signed integer.

ToInt32(SByte) ToInt32(SByte) ToInt32(SByte) ToInt32(SByte)

将指定的 8 位带符号整数的值转换为等效的 32 位带符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 32-bit signed integer.

ToInt32(Object, IFormatProvider) ToInt32(Object, IFormatProvider) ToInt32(Object, IFormatProvider) ToInt32(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 32 位带符号整数。Converts the value of the specified object to a 32-bit signed integer, using the specified culture-specific formatting information.

ToInt32(String, IFormatProvider) ToInt32(String, IFormatProvider) ToInt32(String, IFormatProvider) ToInt32(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 32 位带符号整数。Converts the specified string representation of a number to an equivalent 32-bit signed integer, using the specified culture-specific formatting information.

ToInt32(String, Int32) ToInt32(String, Int32) ToInt32(String, Int32) ToInt32(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 32 位有符号整数。Converts the string representation of a number in a specified base to an equivalent 32-bit signed integer.

ToInt32(UInt64) ToInt32(UInt64) ToInt32(UInt64) ToInt32(UInt64)

将指定的 64 位无符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit signed integer.

ToInt32(Object) ToInt32(Object) ToInt32(Object) ToInt32(Object)

将指定对象的值转换为 32 位带符号整数。Converts the value of the specified object to a 32-bit signed integer.

ToInt32(UInt16) ToInt32(UInt16) ToInt32(UInt16) ToInt32(UInt16)

将指定的 16 位无符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit signed integer.

ToInt32(Int32) ToInt32(Int32) ToInt32(Int32) ToInt32(Int32)

返回指定的 32 位有符号整数;不执行实际的转换。Returns the specified 32-bit signed integer; no actual conversion is performed.

ToInt32(Byte) ToInt32(Byte) ToInt32(Byte) ToInt32(Byte)

将指定的 8 位无符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit signed integer.

ToInt32(Char) ToInt32(Char) ToInt32(Char) ToInt32(Char)

将指定的 Unicode 字符的值转换为等效的 32 位有符号整数。Converts the value of the specified Unicode character to the equivalent 32-bit signed integer.

ToInt32(DateTime) ToInt32(DateTime) ToInt32(DateTime) ToInt32(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToInt32(Boolean) ToInt32(Boolean) ToInt32(Boolean) ToInt32(Boolean)

将指定的布尔值转换为等效的 32 位带符号整数。Converts the specified Boolean value to the equivalent 32-bit signed integer.

ToInt32(Int64) ToInt32(Int64) ToInt32(Int64) ToInt32(Int64)

将指定的 64 位有符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 32-bit signed integer.

ToInt32(Double) ToInt32(Double) ToInt32(Double) ToInt32(Double)

将指定的双精度浮点数的值转换为等效的 32 位带符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 32-bit signed integer.

ToInt32(Int16) ToInt32(Int16) ToInt32(Int16) ToInt32(Int16)

将指定的 16 位有符号整数的值转换为等效的 32 位有符号整数。Converts the value of the specified 16-bit signed integer to an equivalent 32-bit signed integer.

ToInt32(Decimal) ToInt32(Decimal) ToInt32(Decimal) ToInt32(Decimal)

将指定的十进制数的值转换为等效的 32 位带符号整数。Converts the value of the specified decimal number to an equivalent 32-bit signed integer.

ToInt64(Single) ToInt64(Single) ToInt64(Single) ToInt64(Single)

将指定的单精度浮点数的值转换为等效的 64 位带符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 64-bit signed integer.

ToInt64(String, Int32) ToInt64(String, Int32) ToInt64(String, Int32) ToInt64(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 64 位有符号整数。Converts the string representation of a number in a specified base to an equivalent 64-bit signed integer.

ToInt64(String, IFormatProvider) ToInt64(String, IFormatProvider) ToInt64(String, IFormatProvider) ToInt64(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 64 位带符号整数。Converts the specified string representation of a number to an equivalent 64-bit signed integer, using the specified culture-specific formatting information.

ToInt64(Object, IFormatProvider) ToInt64(Object, IFormatProvider) ToInt64(Object, IFormatProvider) ToInt64(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 64 位带符号整数。Converts the value of the specified object to a 64-bit signed integer, using the specified culture-specific formatting information.

ToInt64(UInt64) ToInt64(UInt64) ToInt64(UInt64) ToInt64(UInt64)

将指定的 64 位无符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 64-bit signed integer.

ToInt64(UInt32) ToInt64(UInt32) ToInt64(UInt32) ToInt64(UInt32)

将指定的 32 位无符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit signed integer.

ToInt64(UInt16) ToInt64(UInt16) ToInt64(UInt16) ToInt64(UInt16)

将指定的 16 位无符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit signed integer.

ToInt64(String) ToInt64(String) ToInt64(String) ToInt64(String)

将数字的指定字符串表示形式转换为等效的 64 位带符号整数。Converts the specified string representation of a number to an equivalent 64-bit signed integer.

ToInt64(SByte) ToInt64(SByte) ToInt64(SByte) ToInt64(SByte)

将指定的 8 位带符号整数的值转换为等效的 64 位带符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 64-bit signed integer.

ToInt64(Object) ToInt64(Object) ToInt64(Object) ToInt64(Object)

将指定对象的值转换为 64 位带符号整数。Converts the value of the specified object to a 64-bit signed integer.

ToInt64(Int64) ToInt64(Int64) ToInt64(Int64) ToInt64(Int64)

返回指定的 64 位有符号整数;不执行实际的转换。Returns the specified 64-bit signed integer; no actual conversion is performed.

ToInt64(Byte) ToInt64(Byte) ToInt64(Byte) ToInt64(Byte)

将指定的 8 位无符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit signed integer.

ToInt64(Char) ToInt64(Char) ToInt64(Char) ToInt64(Char)

将指定的 Unicode 字符的值转换为等效的 64 位有符号整数。Converts the value of the specified Unicode character to the equivalent 64-bit signed integer.

ToInt64(DateTime) ToInt64(DateTime) ToInt64(DateTime) ToInt64(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToInt64(Boolean) ToInt64(Boolean) ToInt64(Boolean) ToInt64(Boolean)

将指定的布尔值转换为等效的 64 位带符号整数。Converts the specified Boolean value to the equivalent 64-bit signed integer.

ToInt64(Double) ToInt64(Double) ToInt64(Double) ToInt64(Double)

将指定的双精度浮点数的值转换为等效的 64 位带符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 64-bit signed integer.

ToInt64(Int16) ToInt64(Int16) ToInt64(Int16) ToInt64(Int16)

将指定的 16 位有符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 16-bit signed integer to an equivalent 64-bit signed integer.

ToInt64(Int32) ToInt64(Int32) ToInt64(Int32) ToInt64(Int32)

将指定的 32 位有符号整数的值转换为等效的 64 位有符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 64-bit signed integer.

ToInt64(Decimal) ToInt64(Decimal) ToInt64(Decimal) ToInt64(Decimal)

将指定的十进制数的值转换为等效的 64 位带符号整数。Converts the value of the specified decimal number to an equivalent 64-bit signed integer.

ToSByte(SByte) ToSByte(SByte) ToSByte(SByte) ToSByte(SByte)

返回指定的 8 位有符号整数;不执行实际的转换。Returns the specified 8-bit signed integer; no actual conversion is performed.

ToSByte(String, Int32) ToSByte(String, Int32) ToSByte(String, Int32) ToSByte(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 8 位有符号整数。Converts the string representation of a number in a specified base to an equivalent 8-bit signed integer.

ToSByte(String, IFormatProvider) ToSByte(String, IFormatProvider) ToSByte(String, IFormatProvider) ToSByte(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 8 位带符号整数。Converts the specified string representation of a number to an equivalent 8-bit signed integer, using the specified culture-specific formatting information.

ToSByte(Object, IFormatProvider) ToSByte(Object, IFormatProvider) ToSByte(Object, IFormatProvider) ToSByte(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 8 位带符号整数。Converts the value of the specified object to an 8-bit signed integer, using the specified culture-specific formatting information.

ToSByte(UInt64) ToSByte(UInt64) ToSByte(UInt64) ToSByte(UInt64)

将指定的 64 位无符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 8-bit signed integer.

ToSByte(UInt32) ToSByte(UInt32) ToSByte(UInt32) ToSByte(UInt32)

将指定的 32 位无符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 8-bit signed integer.

ToSByte(String) ToSByte(String) ToSByte(String) ToSByte(String)

将数字的指定字符串表示形式转换为等效的 8 位带符号整数。Converts the specified string representation of a number to an equivalent 8-bit signed integer.

ToSByte(Single) ToSByte(Single) ToSByte(Single) ToSByte(Single)

将指定的单精度浮点数的值转换为等效的 8 位带符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 8-bit signed integer.

ToSByte(Object) ToSByte(Object) ToSByte(Object) ToSByte(Object)

将指定对象的值转换为 8 位带符号整数。Converts the value of the specified object to an 8-bit signed integer.

ToSByte(UInt16) ToSByte(UInt16) ToSByte(UInt16) ToSByte(UInt16)

将指定的 16 位无符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 8-bit signed integer.

ToSByte(Int32) ToSByte(Int32) ToSByte(Int32) ToSByte(Int32)

将指定的 32 位有符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 8-bit signed integer.

ToSByte(Int64) ToSByte(Int64) ToSByte(Int64) ToSByte(Int64)

将指定的 64 位有符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 8-bit signed integer.

ToSByte(Byte) ToSByte(Byte) ToSByte(Byte) ToSByte(Byte)

将指定的 8 位无符号整数的值转换为等效的 8 位有符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 8-bit signed integer.

ToSByte(Char) ToSByte(Char) ToSByte(Char) ToSByte(Char)

将指定的 Unicode 字符的值转换为等效的 8 位有符号整数。Converts the value of the specified Unicode character to the equivalent 8-bit signed integer.

ToSByte(DateTime) ToSByte(DateTime) ToSByte(DateTime) ToSByte(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToSByte(Boolean) ToSByte(Boolean) ToSByte(Boolean) ToSByte(Boolean)

将指定的布尔值转换为等效的 8 位带符号整数。Converts the specified Boolean value to the equivalent 8-bit signed integer.

ToSByte(Double) ToSByte(Double) ToSByte(Double) ToSByte(Double)

将指定的双精度浮点数的值转换为等效的 8 位带符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 8-bit signed integer.

ToSByte(Int16) ToSByte(Int16) ToSByte(Int16) ToSByte(Int16)

将指定的 16 位带符号整数的值转换为等效的 8 位带符号整数。Converts the value of the specified 16-bit signed integer to the equivalent 8-bit signed integer.

ToSByte(Decimal) ToSByte(Decimal) ToSByte(Decimal) ToSByte(Decimal)

将指定的十进制数的值转换为等效的 8 位带符号整数。Converts the value of the specified decimal number to an equivalent 8-bit signed integer.

ToSingle(String, IFormatProvider) ToSingle(String, IFormatProvider) ToSingle(String, IFormatProvider) ToSingle(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的单精度浮点数。Converts the specified string representation of a number to an equivalent single-precision floating-point number, using the specified culture-specific formatting information.

ToSingle(SByte) ToSingle(SByte) ToSingle(SByte) ToSingle(SByte)

将指定的 8 位带符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 8-bit signed integer to the equivalent single-precision floating-point number.

ToSingle(Object, IFormatProvider) ToSingle(Object, IFormatProvider) ToSingle(Object, IFormatProvider) ToSingle(Object, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定对象的值转换为单精度浮点数。Converts the value of the specified object to an single-precision floating-point number, using the specified culture-specific formatting information.

ToSingle(UInt64) ToSingle(UInt64) ToSingle(UInt64) ToSingle(UInt64)

将指定的 64 位无符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 64-bit unsigned integer to an equivalent single-precision floating-point number.

ToSingle(UInt32) ToSingle(UInt32) ToSingle(UInt32) ToSingle(UInt32)

将指定的 32 位无符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 32-bit unsigned integer to an equivalent single-precision floating-point number.

ToSingle(String) ToSingle(String) ToSingle(String) ToSingle(String)

将数字的指定字符串表示形式转换为等效的单精度浮点数。Converts the specified string representation of a number to an equivalent single-precision floating-point number.

ToSingle(Single) ToSingle(Single) ToSingle(Single) ToSingle(Single)

返回指定的单精度浮点数;不执行任何实际的转换。Returns the specified single-precision floating-point number; no actual conversion is performed.

ToSingle(Object) ToSingle(Object) ToSingle(Object) ToSingle(Object)

将指定对象的值转换为单精度浮点数。Converts the value of the specified object to a single-precision floating-point number.

ToSingle(UInt16) ToSingle(UInt16) ToSingle(UInt16) ToSingle(UInt16)

将指定的 16 位无符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 16-bit unsigned integer to the equivalent single-precision floating-point number.

ToSingle(Int32) ToSingle(Int32) ToSingle(Int32) ToSingle(Int32)

将指定的 32 位带符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 32-bit signed integer to an equivalent single-precision floating-point number.

ToSingle(Int16) ToSingle(Int16) ToSingle(Int16) ToSingle(Int16)

将指定的 16 位带符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 16-bit signed integer to an equivalent single-precision floating-point number.

ToSingle(Double) ToSingle(Double) ToSingle(Double) ToSingle(Double)

将指定的双精度浮点数的值转换为等效的单精度浮点数。Converts the value of the specified double-precision floating-point number to an equivalent single-precision floating-point number.

ToSingle(Decimal) ToSingle(Decimal) ToSingle(Decimal) ToSingle(Decimal)

将指定的十进制数的值转换为等效的单精度浮点数。Converts the value of the specified decimal number to an equivalent single-precision floating-point number.

ToSingle(DateTime) ToSingle(DateTime) ToSingle(DateTime) ToSingle(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToSingle(Char) ToSingle(Char) ToSingle(Char) ToSingle(Char)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToSingle(Byte) ToSingle(Byte) ToSingle(Byte) ToSingle(Byte)

将指定的 8 位无符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 8-bit unsigned integer to the equivalent single-precision floating-point number.

ToSingle(Boolean) ToSingle(Boolean) ToSingle(Boolean) ToSingle(Boolean)

将指定的布尔值转换为等效的单精度浮点数。Converts the specified Boolean value to the equivalent single-precision floating-point number.

ToSingle(Int64) ToSingle(Int64) ToSingle(Int64) ToSingle(Int64)

将指定的 64 位带符号整数的值转换为等效的单精度浮点数。Converts the value of the specified 64-bit signed integer to an equivalent single-precision floating-point number.

ToString(Int16, Int32) ToString(Int16, Int32) ToString(Int16, Int32) ToString(Int16, Int32)

将 16 位带符号整数的值转换为其指定基的等效字符串表示形式。Converts the value of a 16-bit signed integer to its equivalent string representation in a specified base.

ToString(Int16, IFormatProvider) ToString(Int16, IFormatProvider) ToString(Int16, IFormatProvider) ToString(Int16, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 16 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 16-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(UInt64, IFormatProvider) ToString(UInt64, IFormatProvider) ToString(UInt64, IFormatProvider) ToString(UInt64, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 64 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 64-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Decimal, IFormatProvider) ToString(Decimal, IFormatProvider) ToString(Decimal, IFormatProvider) ToString(Decimal, IFormatProvider)

使用指定的区域性特定格式设置信息将指定的十进制数的值转换为其等效的字符串表示形式。Converts the value of the specified decimal number to its equivalent string representation, using the specified culture-specific formatting information.

ToString(DateTime, IFormatProvider) ToString(DateTime, IFormatProvider) ToString(DateTime, IFormatProvider) ToString(DateTime, IFormatProvider)

使用指定的区域性特定格式设置信息将指定的 DateTime 的值转换为其等效的字符串表示形式。Converts the value of the specified DateTime to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Int32, IFormatProvider) ToString(Int32, IFormatProvider) ToString(Int32, IFormatProvider) ToString(Int32, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 32 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 32-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Double, IFormatProvider) ToString(Double, IFormatProvider) ToString(Double, IFormatProvider) ToString(Double, IFormatProvider)

将指定的双精度浮点数的值转换其等效的字符串表示形式。Converts the value of the specified double-precision floating-point number to its equivalent string representation.

ToString(Int32, Int32) ToString(Int32, Int32) ToString(Int32, Int32) ToString(Int32, Int32)

将 32 位带符号整数的值转换为其指定基的等效字符串表示形式。Converts the value of a 32-bit signed integer to its equivalent string representation in a specified base.

ToString(SByte, IFormatProvider) ToString(SByte, IFormatProvider) ToString(SByte, IFormatProvider) ToString(SByte, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 8 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 8-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Int64, Int32) ToString(Int64, Int32) ToString(Int64, Int32) ToString(Int64, Int32)

将 64 位带符号整数的值转换为其指定基的等效字符串表示形式。Converts the value of a 64-bit signed integer to its equivalent string representation in a specified base.

ToString(Object, IFormatProvider) ToString(Object, IFormatProvider) ToString(Object, IFormatProvider) ToString(Object, IFormatProvider)

使用指定的区域性特定格式设置信息将指定对象的值转换为其等效的字符串表示形式。Converts the value of the specified object to its equivalent string representation using the specified culture-specific formatting information.

ToString(Single, IFormatProvider) ToString(Single, IFormatProvider) ToString(Single, IFormatProvider) ToString(Single, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的单精度浮点数的值转换为其等效的字符串表示形式。Converts the value of the specified single-precision floating-point number to its equivalent string representation, using the specified culture-specific formatting information.

ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider) ToString(String, IFormatProvider)

返回指定的字符串实例;不执行任何实际转换。Returns the specified string instance; no actual conversion is performed.

ToString(UInt16, IFormatProvider) ToString(UInt16, IFormatProvider) ToString(UInt16, IFormatProvider) ToString(UInt16, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 16 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 16-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(UInt32, IFormatProvider) ToString(UInt32, IFormatProvider) ToString(UInt32, IFormatProvider) ToString(UInt32, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 32 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 32-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Char, IFormatProvider) ToString(Char, IFormatProvider) ToString(Char, IFormatProvider) ToString(Char, IFormatProvider)

使用指定的区域性特定格式设置信息将指定的 Unicode 字符的值转换为其等效的字符串表示形式。Converts the value of the specified Unicode character to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Int64, IFormatProvider) ToString(Int64, IFormatProvider) ToString(Int64, IFormatProvider) ToString(Int64, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 64 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 64-bit signed integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Byte, Int32) ToString(Byte, Int32) ToString(Byte, Int32) ToString(Byte, Int32)

将 8 位无符号整数的值转换为其等效的指定基数的字符串表示形式。Converts the value of an 8-bit unsigned integer to its equivalent string representation in a specified base.

ToString(UInt64) ToString(UInt64) ToString(UInt64) ToString(UInt64)

将指定的 64 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 64-bit unsigned integer to its equivalent string representation.

ToString(Boolean, IFormatProvider) ToString(Boolean, IFormatProvider) ToString(Boolean, IFormatProvider) ToString(Boolean, IFormatProvider)

将指定的布尔值转换为其等效的字符串表示形式。Converts the specified Boolean value to its equivalent string representation.

ToString(Byte, IFormatProvider) ToString(Byte, IFormatProvider) ToString(Byte, IFormatProvider) ToString(Byte, IFormatProvider)

使用指定的区域性特定格式设置信息,将指定的 8 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 8-bit unsigned integer to its equivalent string representation, using the specified culture-specific formatting information.

ToString(Boolean) ToString(Boolean) ToString(Boolean) ToString(Boolean)

将指定的布尔值转换为其等效的字符串表示形式。Converts the specified Boolean value to its equivalent string representation.

ToString(Byte) ToString(Byte) ToString(Byte) ToString(Byte)

将指定的 8 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 8-bit unsigned integer to its equivalent string representation.

ToString(Char) ToString(Char) ToString(Char) ToString(Char)

将指定的 Unicode 字符的值转换为其等效的字符串表示形式。Converts the value of the specified Unicode character to its equivalent string representation.

ToString(Decimal) ToString(Decimal) ToString(Decimal) ToString(Decimal)

将指定的十进制数的值转换为其等效的字符串表示形式。Converts the value of the specified decimal number to its equivalent string representation.

ToString(Double) ToString(Double) ToString(Double) ToString(Double)

将指定的双精度浮点数的值转换其等效的字符串表示形式。Converts the value of the specified double-precision floating-point number to its equivalent string representation.

ToString(Int16) ToString(Int16) ToString(Int16) ToString(Int16)

将指定的 16 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 16-bit signed integer to its equivalent string representation.

ToString(DateTime) ToString(DateTime) ToString(DateTime) ToString(DateTime)

将指定的 DateTime 的值转换为其等效的字符串表示形式。Converts the value of the specified DateTime to its equivalent string representation.

ToString(Int64) ToString(Int64) ToString(Int64) ToString(Int64)

将指定的 64 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 64-bit signed integer to its equivalent string representation.

ToString(Object) ToString(Object) ToString(Object) ToString(Object)

将指定对象的值转换为其等效的字符串表示形式。Converts the value of the specified object to its equivalent string representation.

ToString(SByte) ToString(SByte) ToString(SByte) ToString(SByte)

将指定的 8 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 8-bit signed integer to its equivalent string representation.

ToString(Single) ToString(Single) ToString(Single) ToString(Single)

将指定的单精度浮点数的值转换其等效的字符串表示形式。Converts the value of the specified single-precision floating-point number to its equivalent string representation.

ToString(String) ToString(String) ToString(String) ToString(String)

返回指定的字符串实例;不执行任何实际转换。Returns the specified string instance; no actual conversion is performed.

ToString(UInt16) ToString(UInt16) ToString(UInt16) ToString(UInt16)

将指定的 16 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 16-bit unsigned integer to its equivalent string representation.

ToString(UInt32) ToString(UInt32) ToString(UInt32) ToString(UInt32)

将指定的 32 位无符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 32-bit unsigned integer to its equivalent string representation.

ToString(Int32) ToString(Int32) ToString(Int32) ToString(Int32)

将指定的 32 位带符号整数的值转换为其等效的字符串表示形式。Converts the value of the specified 32-bit signed integer to its equivalent string representation.

ToUInt16(String) ToUInt16(String) ToUInt16(String) ToUInt16(String)

将数字的指定字符串表示形式转换为等效的 16 位无符号整数。Converts the specified string representation of a number to an equivalent 16-bit unsigned integer.

ToUInt16(UInt16) ToUInt16(UInt16) ToUInt16(UInt16) ToUInt16(UInt16)

返回指定的 16 位无符号整数;不执行任何实际的转换。Returns the specified 16-bit unsigned integer; no actual conversion is performed.

ToUInt16(UInt32) ToUInt16(UInt32) ToUInt16(UInt32) ToUInt16(UInt32)

将指定的 32 位无符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 16-bit unsigned integer.

ToUInt16(String, Int32) ToUInt16(String, Int32) ToUInt16(String, Int32) ToUInt16(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 16 位无符号整数。Converts the string representation of a number in a specified base to an equivalent 16-bit unsigned integer.

ToUInt16(Object, IFormatProvider) ToUInt16(Object, IFormatProvider) ToUInt16(Object, IFormatProvider) ToUInt16(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 16 位无符号整数。Converts the value of the specified object to a 16-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt16(String, IFormatProvider) ToUInt16(String, IFormatProvider) ToUInt16(String, IFormatProvider) ToUInt16(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 16 位无符号整数。Converts the specified string representation of a number to an equivalent 16-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt16(Single) ToUInt16(Single) ToUInt16(Single) ToUInt16(Single)

将指定的单精度浮点数的值转换为等效的 16 位无符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 16-bit unsigned integer.

ToUInt16(UInt64) ToUInt16(UInt64) ToUInt16(UInt64) ToUInt16(UInt64)

将指定的 64 位无符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 16-bit unsigned integer.

ToUInt16(SByte) ToUInt16(SByte) ToUInt16(SByte) ToUInt16(SByte)

将指定的 8 位有符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 16-bit unsigned integer.

ToUInt16(Double) ToUInt16(Double) ToUInt16(Double) ToUInt16(Double)

将指定的双精度浮点数的值转换为等效的 16 位无符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 16-bit unsigned integer.

ToUInt16(Int64) ToUInt16(Int64) ToUInt16(Int64) ToUInt16(Int64)

将指定的 64 位有符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 16-bit unsigned integer.

ToUInt16(Object) ToUInt16(Object) ToUInt16(Object) ToUInt16(Object)

将指定对象的值转换为 16 位无符号整数。Converts the value of the specified object to a 16-bit unsigned integer.

ToUInt16(Byte) ToUInt16(Byte) ToUInt16(Byte) ToUInt16(Byte)

将指定的 8 位无符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 16-bit unsigned integer.

ToUInt16(Char) ToUInt16(Char) ToUInt16(Char) ToUInt16(Char)

将指定 Unicode 字符的值转换为等效的 16 位无符号整数。Converts the value of the specified Unicode character to the equivalent 16-bit unsigned integer.

ToUInt16(DateTime) ToUInt16(DateTime) ToUInt16(DateTime) ToUInt16(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToUInt16(Boolean) ToUInt16(Boolean) ToUInt16(Boolean) ToUInt16(Boolean)

将指定的布尔值转换为等效的 16 位无符号整数。Converts the specified Boolean value to the equivalent 16-bit unsigned integer.

ToUInt16(Int16) ToUInt16(Int16) ToUInt16(Int16) ToUInt16(Int16)

将指定的 16 位有符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 16-bit signed integer to the equivalent 16-bit unsigned integer.

ToUInt16(Int32) ToUInt16(Int32) ToUInt16(Int32) ToUInt16(Int32)

将指定的 32 位有符号整数的值转换为等效的 16 位无符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 16-bit unsigned integer.

ToUInt16(Decimal) ToUInt16(Decimal) ToUInt16(Decimal) ToUInt16(Decimal)

将指定的十进制数的值转换为等效的 16 位无符号整数。Converts the value of the specified decimal number to an equivalent 16-bit unsigned integer.

ToUInt32(Single) ToUInt32(Single) ToUInt32(Single) ToUInt32(Single)

将指定的单精度浮点数的值转换为等效的 32 位无符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 32-bit unsigned integer.

ToUInt32(String, IFormatProvider) ToUInt32(String, IFormatProvider) ToUInt32(String, IFormatProvider) ToUInt32(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 32 位无符号整数。Converts the specified string representation of a number to an equivalent 32-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt32(Object, IFormatProvider) ToUInt32(Object, IFormatProvider) ToUInt32(Object, IFormatProvider) ToUInt32(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 32 位无符号整数。Converts the value of the specified object to a 32-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt32(String, Int32) ToUInt32(String, Int32) ToUInt32(String, Int32) ToUInt32(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 32 位无符号整数。Converts the string representation of a number in a specified base to an equivalent 32-bit unsigned integer.

ToUInt32(UInt64) ToUInt32(UInt64) ToUInt32(UInt64) ToUInt32(UInt64)

将指定的 64 位无符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 64-bit unsigned integer to an equivalent 32-bit unsigned integer.

ToUInt32(UInt32) ToUInt32(UInt32) ToUInt32(UInt32) ToUInt32(UInt32)

返回指定的 32 位无符号整数;不执行任何实际的转换。Returns the specified 32-bit unsigned integer; no actual conversion is performed.

ToUInt32(UInt16) ToUInt32(UInt16) ToUInt32(UInt16) ToUInt32(UInt16)

将指定的 16 位无符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 32-bit unsigned integer.

ToUInt32(String) ToUInt32(String) ToUInt32(String) ToUInt32(String)

将数字的指定字符串表示形式转换为等效的 32 位无符号整数。Converts the specified string representation of a number to an equivalent 32-bit unsigned integer.

ToUInt32(SByte) ToUInt32(SByte) ToUInt32(SByte) ToUInt32(SByte)

将指定的 8 位有符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 32-bit unsigned integer.

ToUInt32(Char) ToUInt32(Char) ToUInt32(Char) ToUInt32(Char)

将指定 Unicode 字符的值转换为等效的 32 位无符号整数。Converts the value of the specified Unicode character to the equivalent 32-bit unsigned integer.

ToUInt32(Int64) ToUInt32(Int64) ToUInt32(Int64) ToUInt32(Int64)

将指定的 64 位有符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 32-bit unsigned integer.

ToUInt32(Int32) ToUInt32(Int32) ToUInt32(Int32) ToUInt32(Int32)

将指定的 32 位有符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 32-bit unsigned integer.

ToUInt32(Int16) ToUInt32(Int16) ToUInt32(Int16) ToUInt32(Int16)

将指定的 16 位有符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 16-bit signed integer to the equivalent 32-bit unsigned integer.

ToUInt32(Double) ToUInt32(Double) ToUInt32(Double) ToUInt32(Double)

将指定的双精度浮点数的值转换为等效的 32 位无符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 32-bit unsigned integer.

ToUInt32(Decimal) ToUInt32(Decimal) ToUInt32(Decimal) ToUInt32(Decimal)

将指定的十进制数的值转换为等效的 32 位无符号整数。Converts the value of the specified decimal number to an equivalent 32-bit unsigned integer.

ToUInt32(DateTime) ToUInt32(DateTime) ToUInt32(DateTime) ToUInt32(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToUInt32(Byte) ToUInt32(Byte) ToUInt32(Byte) ToUInt32(Byte)

将指定的 8 位无符号整数的值转换为等效的 32 位无符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 32-bit unsigned integer.

ToUInt32(Boolean) ToUInt32(Boolean) ToUInt32(Boolean) ToUInt32(Boolean)

将指定的布尔值转换为等效的 32 位无符号整数。Converts the specified Boolean value to the equivalent 32-bit unsigned integer.

ToUInt32(Object) ToUInt32(Object) ToUInt32(Object) ToUInt32(Object)

将指定对象的值转换为 32 位无符号整数。Converts the value of the specified object to a 32-bit unsigned integer.

ToUInt64(String) ToUInt64(String) ToUInt64(String) ToUInt64(String)

将数字的指定字符串表示形式转换为等效的 64 位无符号整数。Converts the specified string representation of a number to an equivalent 64-bit unsigned integer.

ToUInt64(UInt16) ToUInt64(UInt16) ToUInt64(UInt16) ToUInt64(UInt16)

将指定的 16 位无符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 16-bit unsigned integer to the equivalent 64-bit unsigned integer.

ToUInt64(UInt32) ToUInt64(UInt32) ToUInt64(UInt32) ToUInt64(UInt32)

将指定的 32 位无符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 32-bit unsigned integer to an equivalent 64-bit unsigned integer.

ToUInt64(String, Int32) ToUInt64(String, Int32) ToUInt64(String, Int32) ToUInt64(String, Int32)

将指定基数的数字的字符串表示形式转换为等效的 64 位无符号整数。Converts the string representation of a number in a specified base to an equivalent 64-bit unsigned integer.

ToUInt64(Object, IFormatProvider) ToUInt64(Object, IFormatProvider) ToUInt64(Object, IFormatProvider) ToUInt64(Object, IFormatProvider)

使用指定的区域性特定格式信息,将指定对象的值转换为 64 位无符号整数。Converts the value of the specified object to a 64-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt64(String, IFormatProvider) ToUInt64(String, IFormatProvider) ToUInt64(String, IFormatProvider) ToUInt64(String, IFormatProvider)

使用指定的区域性特定格式设置信息,将数字的指定字符串表示形式转换为等效的 64 位无符号整数。Converts the specified string representation of a number to an equivalent 64-bit unsigned integer, using the specified culture-specific formatting information.

ToUInt64(Single) ToUInt64(Single) ToUInt64(Single) ToUInt64(Single)

将指定的单精度浮点数的值转换为等效的 64 位无符号整数。Converts the value of the specified single-precision floating-point number to an equivalent 64-bit unsigned integer.

ToUInt64(UInt64) ToUInt64(UInt64) ToUInt64(UInt64) ToUInt64(UInt64)

返回指定的 64 位无符号整数;不执行任何实际的转换。Returns the specified 64-bit unsigned integer; no actual conversion is performed.

ToUInt64(SByte) ToUInt64(SByte) ToUInt64(SByte) ToUInt64(SByte)

将指定的 8 位有符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 8-bit signed integer to the equivalent 64-bit unsigned integer.

ToUInt64(Int16) ToUInt64(Int16) ToUInt64(Int16) ToUInt64(Int16)

将指定的 16 位有符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 16-bit signed integer to the equivalent 64-bit unsigned integer.

ToUInt64(Int64) ToUInt64(Int64) ToUInt64(Int64) ToUInt64(Int64)

将指定的 64 位有符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 64-bit signed integer to an equivalent 64-bit unsigned integer.

ToUInt64(Int32) ToUInt64(Int32) ToUInt64(Int32) ToUInt64(Int32)

将指定的 32 位有符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 32-bit signed integer to an equivalent 64-bit unsigned integer.

ToUInt64(Double) ToUInt64(Double) ToUInt64(Double) ToUInt64(Double)

将指定的双精度浮点数的值转换为等效的 64 位无符号整数。Converts the value of the specified double-precision floating-point number to an equivalent 64-bit unsigned integer.

ToUInt64(Decimal) ToUInt64(Decimal) ToUInt64(Decimal) ToUInt64(Decimal)

将指定的十进制数的值转换为等效的 64 位无符号整数。Converts the value of the specified decimal number to an equivalent 64-bit unsigned integer.

ToUInt64(DateTime) ToUInt64(DateTime) ToUInt64(DateTime) ToUInt64(DateTime)

调用此方法始终引发 InvalidCastExceptionCalling this method always throws InvalidCastException.

ToUInt64(Char) ToUInt64(Char) ToUInt64(Char) ToUInt64(Char)

将指定 Unicode 字符的值转换为等效的 64 位无符号整数。Converts the value of the specified Unicode character to the equivalent 64-bit unsigned integer.

ToUInt64(Byte) ToUInt64(Byte) ToUInt64(Byte) ToUInt64(Byte)

将指定的 8 位无符号整数的值转换为等效的 64 位无符号整数。Converts the value of the specified 8-bit unsigned integer to the equivalent 64-bit unsigned integer.

ToUInt64(Boolean) ToUInt64(Boolean) ToUInt64(Boolean) ToUInt64(Boolean)

将指定的布尔值转换为等效的 64 位无符号整数。Converts the specified Boolean value to the equivalent 64-bit unsigned integer.

ToUInt64(Object) ToUInt64(Object) ToUInt64(Object) ToUInt64(Object)

将指定对象的值转换为 64 位无符号整数。Converts the value of the specified object to a 64-bit unsigned integer.

TryFromBase64Chars(ReadOnlySpan<Char>, Span<Byte>, Int32) TryFromBase64Chars(ReadOnlySpan<Char>, Span<Byte>, Int32) TryFromBase64Chars(ReadOnlySpan<Char>, Span<Byte>, Int32) TryFromBase64Chars(ReadOnlySpan<Char>, Span<Byte>, Int32)
TryFromBase64String(String, Span<Byte>, Int32) TryFromBase64String(String, Span<Byte>, Int32) TryFromBase64String(String, Span<Byte>, Int32) TryFromBase64String(String, Span<Byte>, Int32)
TryToBase64Chars(ReadOnlySpan<Byte>, Span<Char>, Int32, Base64FormattingOptions) TryToBase64Chars(ReadOnlySpan<Byte>, Span<Char>, Int32, Base64FormattingOptions) TryToBase64Chars(ReadOnlySpan<Byte>, Span<Char>, Int32, Base64FormattingOptions) TryToBase64Chars(ReadOnlySpan<Byte>, Span<Char>, Int32, Base64FormattingOptions)

适用于

另请参阅