OracleBoolean.Explicit Operator

Definition

Used for explicit OracleBoolean conversion.

Overloads

Explicit(OracleBoolean to Boolean)

Converts an OracleBoolean to a Boolean.

Explicit(OracleNumber to OracleBoolean)

Converts the OracleNumber parameter to an OracleBoolean structure.

Explicit(String to OracleBoolean)

Converts a string to an OracleBoolean structure.

Explicit(OracleBoolean to Boolean)

Converts an OracleBoolean to a Boolean.

C#
public static explicit operator bool(System.Data.OracleClient.OracleBoolean x);

Parameters

x
OracleBoolean

An OracleBoolean to convert.

Returns

A Boolean set to the Value of the OracleBoolean.

Exceptions

The OracleBoolean contains a null value.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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 OracleBoolean)

Converts the OracleNumber parameter to an OracleBoolean structure.

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

Parameters

x
OracleNumber

An OracleNumber to be converted to an OracleBoolean structure.

Returns

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

Remarks

If the value of the OracleNumber is 0, the value of OracleBoolean is false; otherwise, the value of the OracleBoolean is true.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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(String to OracleBoolean)

Converts a string to an OracleBoolean structure.

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

Parameters

x
String

A string to be converted to an OracleBoolean structure.

Returns

A new OracleBoolean structure whose value equals the Value of the OracleNumber parameter.

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.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