Прочетете на английски Редактиране

Споделяне чрез


OracleNumber.Explicit Operator

Definition

Overloads

Explicit(String to OracleNumber)

Converts the supplied String to an OracleNumber structure.

Explicit(Int64 to OracleNumber)

Converts the supplied Int64 structure to an OracleNumber structure.

Explicit(Int32 to OracleNumber)

Converts the supplied integer to an OracleNumber structure.

Explicit(Double to OracleNumber)

Converts the supplied Double structure to an OracleNumber structure.

Explicit(OracleNumber to Int64)

Converts the OracleNumber structure to Int64.

Explicit(OracleNumber to Int32)

Converts the OracleNumber structure to Int32.

Explicit(OracleNumber to Double)

Converts the OracleNumber structure to Double.

Explicit(OracleNumber to Decimal)

Converts the OracleNumber structure to Decimal.

Explicit(Decimal to OracleNumber)

Converts the supplied Decimal structure to an OracleNumber structure.

Explicit(String to OracleNumber)

Converts the supplied String to an OracleNumber structure.

C#
public static explicit operator System.Data.OracleClient.OracleNumber(string x);

Parameters

x
String

The String to be converted.

Returns

A new OracleNumber structure whose Value equals the value of the String structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(Int64 to OracleNumber)

Converts the supplied Int64 structure to an OracleNumber structure.

C#
public static explicit operator System.Data.OracleClient.OracleNumber(long x);

Parameters

x
Int64

The Int64 structure to be converted.

Returns

A new OracleNumber structure whose Value property is equal to the value of the Int64 structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(Int32 to OracleNumber)

Converts the supplied integer to an OracleNumber structure.

C#
public static explicit operator System.Data.OracleClient.OracleNumber(int x);

Parameters

x
Int32

The integer structure to be converted.

Returns

A new OracleNumber structure whose Value property equals the value of the integer.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(Double to OracleNumber)

Converts the supplied Double structure to an OracleNumber structure.

C#
public static explicit operator System.Data.OracleClient.OracleNumber(double x);

Parameters

x
Double

The Double structure to be converted.

Returns

A new OracleNumber structure whose Value property equals the value of the Double structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(OracleNumber to Int64)

Converts the OracleNumber structure to Int64.

C#
public static explicit operator long(System.Data.OracleClient.OracleNumber x);

Parameters

x
OracleNumber

The OracleNumber structure to be converted.

Returns

A new Int64 structure whose value equals the Value of the OracleNumber structure.

Examples

The following code example creates an OracleNumber and converts it to an Int32.

C#
//Create OracleNumber and cast it to an Int32.  
OracleNumber n = new OracleNumber(42);  
Int32 i = (Int32)n;  
Console.WriteLine(i);  

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(OracleNumber to Int32)

Converts the OracleNumber structure to Int32.

C#
public static explicit operator int(System.Data.OracleClient.OracleNumber x);

Parameters

x
OracleNumber

The OracleNumber structure to be converted.

Returns

A new Int32 structure whose value equals the Value of the OracleNumber structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(OracleNumber to Double)

Converts the OracleNumber structure to Double.

C#
public static explicit operator double(System.Data.OracleClient.OracleNumber x);

Parameters

x
OracleNumber

The OracleNumber structure to be converted.

Returns

A new Double structure whose value equals the Value of the OracleNumber structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(OracleNumber to Decimal)

Converts the OracleNumber structure to Decimal.

C#
public static explicit operator decimal(System.Data.OracleClient.OracleNumber x);

Parameters

x
OracleNumber

The OracleNumber structure to be converted.

Returns

A new Decimal structure whose value equals the Value of the OracleNumber structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

Explicit(Decimal to OracleNumber)

Converts the supplied Decimal structure to an OracleNumber structure.

C#
public static explicit operator System.Data.OracleClient.OracleNumber(decimal x);

Parameters

x
Decimal

The Decimal structure to be converted.

Returns

A new OracleNumber structure whose Value is equal to the value of the Decimal structure.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1