Edit

Share via


SqlBoolean.Explicit Operator

Definition

Converts a SqlBoolean to a specified structure.

Overloads

Explicit(SqlString to SqlBoolean)

Converts the SqlString parameter to a SqlBoolean structure.

Explicit(SqlSingle to SqlBoolean)

Converts the SqlSingle parameter to a SqlBoolean structure.

Explicit(SqlMoney to SqlBoolean)

Converts the SqlMoney parameter to a SqlBoolean structure.

Explicit(SqlInt64 to SqlBoolean)

Converts the SqlInt64 parameter to a SqlBoolean structure.

Explicit(SqlInt32 to SqlBoolean)

Converts the SqlInt32 parameter to a SqlBoolean structure.

Explicit(SqlDouble to SqlBoolean)

Converts the SqlDouble parameter to a SqlBoolean structure.

Explicit(SqlDecimal to SqlBoolean)

Converts the SqlDecimal parameter to a SqlBoolean structure.

Explicit(SqlByte to SqlBoolean)

Converts the SqlByte parameter to a SqlBoolean structure.

Explicit(SqlBoolean to Boolean)

Converts a SqlBoolean to a Boolean.

Explicit(SqlInt16 to SqlBoolean)

Converts the SqlInt16 parameter to a SqlBoolean structure.

Explicit(SqlString to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlString parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlString x);

Parameters

x
SqlString

A SqlString to be converted to a SqlBoolean structure.

Returns

A new SqlByte structure whose value equals the Value property of the SqlBoolean parameter.

Remarks

The equivalent method for this operator is SqlString.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlSingle to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlSingle parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlSingle x);

Parameters

x
SqlSingle

A SqlSingle to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value property of the SqlSingle parameter.

Remarks

The equivalent method for this operator is SqlSingle.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlMoney to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlMoney parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlMoney x);

Parameters

x
SqlMoney

A SqlMoney to be converted to a SqlBoolean structure.

Returns

A new SqlByte structure whose value equals the Value property of the SqlMoney parameter.

Remarks

The equivalent method for this operator is SqlMoney.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlInt64 to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlInt64 parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt64 x);

Parameters

x
SqlInt64

A SqlInt64 to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value property of the SqlInt64 parameter.

Remarks

The equivalent method for this operator is SqlInt64.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlInt32 to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlInt32 parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt32 x);

Parameters

x
SqlInt32

A SqlInt32 to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value property of the SqlInt32 parameter.

Remarks

The equivalent method for this operator is SqlInt32.ToSqlBoolean().

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlDouble to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlDouble parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlDouble x);

Parameters

x
SqlDouble

A SqlDouble to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value property of the SqlDouble parameter.

Remarks

The equivalent method for this operator is SqlDouble.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlDecimal to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlDecimal parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlDecimal x);

Parameters

x
SqlDecimal

A SqlDecimal to be converted to a SqlBoolean structure.

Returns

A new SqlByte structure whose value equals the Value property of the SqlDecimal parameter.

Remarks

The equivalent method for this operator is SqlDecimal.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlByte to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlByte parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlByte x);

Parameters

x
SqlByte

A SqlByte to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value of the SqlByte parameter.

Remarks

The equivalent method for this operator is SqlByte.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlBoolean to Boolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts a SqlBoolean to a Boolean.

C#
public static explicit operator bool(System.Data.SqlTypes.SqlBoolean x);

Parameters

x
SqlBoolean

A SqlBoolean to convert.

Returns

A Boolean set to the Value of the SqlBoolean.

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1

Explicit(SqlInt16 to SqlBoolean)

Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs
Source:
SQLBoolean.cs

Converts the SqlInt16 parameter to a SqlBoolean structure.

C#
public static explicit operator System.Data.SqlTypes.SqlBoolean(System.Data.SqlTypes.SqlInt16 x);

Parameters

x
SqlInt16

A SqlInt16 to be converted to a SqlBoolean structure.

Returns

A new SqlBoolean structure whose value equals the Value property of the SqlInt16 parameter.

Remarks

The equivalent method for this operator is SqlInt16.ToSqlBoolean()

See also

Applies to

.NET 10 and other versions
Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.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
.NET Standard 2.0, 2.1