OracleNumber.Explicit 操作员

定义

重载

Explicit(String to OracleNumber)

将提供的 String 转换为 OracleNumber 结构。

Explicit(Int64 to OracleNumber)

将提供的 Int64 结构转换为 OracleNumber 结构。

Explicit(Int32 to OracleNumber)

将提供的整数转换为 OracleNumber 结构。

Explicit(Double to OracleNumber)

将提供的 Double 结构转换为 OracleNumber 结构。

Explicit(OracleNumber to Int64)

OracleNumber 结构转换为 Int64

Explicit(OracleNumber to Int32)

OracleNumber 结构转换为 Int32

Explicit(OracleNumber to Double)

OracleNumber 结构转换为 Double

Explicit(OracleNumber to Decimal)

OracleNumber 结构转换为 Decimal

Explicit(Decimal to OracleNumber)

将提供的 Decimal 结构转换为 OracleNumber 结构。

Explicit(String to OracleNumber)

将提供的 String 转换为 OracleNumber 结构。

public:
 static explicit operator System::Data::OracleClient::OracleNumber(System::String ^ x);
public static explicit operator System.Data.OracleClient.OracleNumber (string x);
static member op_Explicit : string -> System.Data.OracleClient.OracleNumber
Public Shared Narrowing Operator CType (x As String) As OracleNumber

参数

x
String

要转换的 String

返回

一个新 OracleNumber 结构,其 Value 等于 String 结构的值。

适用于

Explicit(Int64 to OracleNumber)

将提供的 Int64 结构转换为 OracleNumber 结构。

public:
 static explicit operator System::Data::OracleClient::OracleNumber(long x);
public static explicit operator System.Data.OracleClient.OracleNumber (long x);
static member op_Explicit : int64 -> System.Data.OracleClient.OracleNumber
Public Shared Narrowing Operator CType (x As Long) As OracleNumber

参数

x
Int64

要转换的 Int64 结构。

返回

新的 OracleNumber 结构,它的 Value 属性等于 Int64 结构的值。

适用于

Explicit(Int32 to OracleNumber)

将提供的整数转换为 OracleNumber 结构。

public:
 static explicit operator System::Data::OracleClient::OracleNumber(int x);
public static explicit operator System.Data.OracleClient.OracleNumber (int x);
static member op_Explicit : int -> System.Data.OracleClient.OracleNumber
Public Shared Narrowing Operator CType (x As Integer) As OracleNumber

参数

x
Int32

要转换的整型结构。

返回

一个新的 OracleNumber 结构,其 Value 属性等于整数的值。

适用于

Explicit(Double to OracleNumber)

将提供的 Double 结构转换为 OracleNumber 结构。

public:
 static explicit operator System::Data::OracleClient::OracleNumber(double x);
public static explicit operator System.Data.OracleClient.OracleNumber (double x);
static member op_Explicit : double -> System.Data.OracleClient.OracleNumber
Public Shared Narrowing Operator CType (x As Double) As OracleNumber

参数

x
Double

要转换的 Double 结构。

返回

新的 OracleNumber 结构,它的 Value 属性等于 Double 结构的值。

适用于

Explicit(OracleNumber to Int64)

OracleNumber 结构转换为 Int64

public:
 static explicit operator long(System::Data::OracleClient::OracleNumber x);
public static explicit operator long (System.Data.OracleClient.OracleNumber x);
static member op_Explicit : System.Data.OracleClient.OracleNumber -> int64
Public Shared Narrowing Operator CType (x As OracleNumber) As Long

参数

x
OracleNumber

要转换的 OracleNumber 结构。

返回

一个新 Int64 结构,它的值等于 Value 结构的 OracleNumber

示例

下面的代码示例创建 并将其 OracleNumber 转换为 Int32

//Create OracleNumber and cast it to an Int32.  
OracleNumber n = new OracleNumber(42);  
Int32 i = (Int32)n;  
Console.WriteLine(i);  
'Create OracleNumber and cast it to an Int32.  
 Dim n As OracleNumber = New OracleNumber(42)  
 Dim i As Int32 = (Int32)n  
 Console.WriteLine(i))  

适用于

Explicit(OracleNumber to Int32)

OracleNumber 结构转换为 Int32

public:
 static explicit operator int(System::Data::OracleClient::OracleNumber x);
public static explicit operator int (System.Data.OracleClient.OracleNumber x);
static member op_Explicit : System.Data.OracleClient.OracleNumber -> int
Public Shared Narrowing Operator CType (x As OracleNumber) As Integer

参数

x
OracleNumber

要转换的 OracleNumber 结构。

返回

一个新 Int32 结构,它的值等于 Value 结构的 OracleNumber

适用于

Explicit(OracleNumber to Double)

OracleNumber 结构转换为 Double

public:
 static explicit operator double(System::Data::OracleClient::OracleNumber x);
public static explicit operator double (System.Data.OracleClient.OracleNumber x);
static member op_Explicit : System.Data.OracleClient.OracleNumber -> double
Public Shared Narrowing Operator CType (x As OracleNumber) As Double

参数

x
OracleNumber

要转换的 OracleNumber 结构。

返回

一个新 Double 结构,它的值等于 Value 结构的 OracleNumber

适用于

Explicit(OracleNumber to Decimal)

OracleNumber 结构转换为 Decimal

public:
 static explicit operator System::Decimal(System::Data::OracleClient::OracleNumber x);
public static explicit operator decimal (System.Data.OracleClient.OracleNumber x);
static member op_Explicit : System.Data.OracleClient.OracleNumber -> decimal
Public Shared Narrowing Operator CType (x As OracleNumber) As Decimal

参数

x
OracleNumber

要转换的 OracleNumber 结构。

返回

一个新 Decimal 结构,它的值等于 Value 结构的 OracleNumber

适用于

Explicit(Decimal to OracleNumber)

将提供的 Decimal 结构转换为 OracleNumber 结构。

public:
 static explicit operator System::Data::OracleClient::OracleNumber(System::Decimal x);
public static explicit operator System.Data.OracleClient.OracleNumber (decimal x);
static member op_Explicit : decimal -> System.Data.OracleClient.OracleNumber
Public Shared Narrowing Operator CType (x As Decimal) As OracleNumber

参数

x
Decimal

要转换的 Decimal 结构。

返回

一个新的 OracleNumber 结构,它的 Value 等于 Decimal 结构的值。

适用于