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類別中的一些轉換方法,包括ToInt32ToBooleanToStringThe 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. 支援的基底類型BooleanCharSByte Int16UInt64ByteInt32、 、、UInt16、、、、、 Int64 UInt32 Single DoubleDecimalDateTime和。StringThe 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時,會擲回, Byte因為10000超出資料類型的範圍。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). 不過,如果結果大於以特定轉換方法的傳回數值型別來表示,就會擲回例外狀況(exception)。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)和十六進位(base 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. 特定類型不支援的轉換應該擲InvalidCastException回。Conversions that are not supported by a particular type should throw an InvalidCastException.

Convert.ToInt32(Object) Convert Convert.To Convert.ToDouble(Object, IFormatProvider) 當方法傳遞自訂類型做為其第一個參數時,或當呼叫類型方法(例如或),並將自訂類型的實例當做其第一個參數傳遞時, ChangeType方法接著會呼叫自訂類型的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方法都包含具有型IFormatProvider別參數的多載。All 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. 它只能由下列基底類型轉換方法使用。如果將null IFormatProvider引數傳遞給這些方法,則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. 以64位數表示的資料可以輕鬆地透過只能傳輸7位字元的資料通道來傳達。Data expressed as base-64 digits can be easily conveyed over data channels that can only transmit 7-bit characters. Convert類別包含下列支援 base64 編碼的方法:一組方法支援將位元組陣列轉換為,或從 a String或 from,或從包含 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
類別會提供方法,將基本數數值型別(包括Boolean)轉換成位元組陣列,並將位元組陣列轉換回基本資料類型。 BitConverterThe 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
類別及其衍生類別( UnicodeEncoding例如和UTF8Encoding)提供了編碼字元陣列或字串的方法(也就是,將它們轉換成特定編碼的位元組陣列),並解碼編碼的位元組陣列(也就是Encoding將位元組陣列轉換回 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

常數,表示缺少資料的資料庫資料行,也就是資料庫為 null。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 字元陣列 (將二進位資料編碼為 Base-64 位數) 的子集轉換為相等的 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)

將指定的字串 (將二進位資料編碼為 Base-64 位數) 轉換為相等的 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 位元不帶正負號的整數陣列的子集,轉換為相等的 Base-64 位數編碼的 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 位元不帶正負號的整數陣列的子集,轉換為相等的 Base-64 位數編碼的 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. 參數會指定可在輸入和輸出陣列中當成位移 (Offset) 的子集、輸入陣列中要轉換的項目個數,以及是否要在輸出陣列中插入分行符號。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 位元不帶正負號的整數陣列子集,轉換為使用 Base-64 位數編碼的相等字串表示。Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. 參數會指定可在輸入陣列中當成位移 (Offset) 的子集、輸入陣列中要轉換的項目個數,以及是否要在傳回值中插入分行符號。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 位元不帶正負號的整數陣列子集,轉換為使用 Base-64 位數編碼的相等字串表示。Converts a subset of an array of 8-bit unsigned integers to its equivalent string representation that is encoded with base-64 digits. 參數會將子集指定為輸入陣列中的位移 (Offset),以及所要轉換陣列中項目的個數。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 位元不帶正負號的整數陣列,轉換為使用 Base-64 位數編碼的相等字串表示。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 位元不帶正負號的整數陣列,轉換為使用 Base-64 位數編碼的相等字串表示。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)

傳回指定的布林值 (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)

適用於

另請參閱