SqlByte.Explicit Operator

Definition

Converts a parameter to a SqlByte.

Overloads

Explicit(SqlString to SqlByte)

Converts the supplied SqlString to SqlByte.

Explicit(SqlSingle to SqlByte)

Converts the supplied SqlSingle structure to SqlByte.

Explicit(SqlMoney to SqlByte)

Converts the SqlMoney parameter to a SqlByte.

Explicit(SqlInt64 to SqlByte)

Converts the supplied SqlInt64 to SqlByte.

Explicit(SqlInt32 to SqlByte)

Converts the supplied SqlInt32 to SqlByte.

Explicit(SqlDouble to SqlByte)

Converts the supplied SqlDouble to SqlByte.

Explicit(SqlDecimal to SqlByte)

Converts the supplied SqlDecimal to SqlByte.

Explicit(SqlByte to Byte)

Converts the supplied SqlByte structure to a byte.

Explicit(SqlBoolean to SqlByte)

Converts the SqlBoolean parameter to a SqlByte.

Explicit(SqlInt16 to SqlByte)

Converts the SqlInt16 parameter to a SqlByte.

Explicit(SqlString to SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlString to SqlByte.

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

Parameters

x
SqlString

An instance of the SqlString class.

Returns

A SqlByte structure whose Value property is equal to the numeric value represented by the SqlString.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlSingle structure to SqlByte.

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

Parameters

x
SqlSingle

A SqlSingle structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlSingle parameter.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the SqlMoney parameter to a SqlByte.

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

Parameters

x
SqlMoney

A SqlMoney structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlMoney parameter.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlInt64 to SqlByte.

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

Parameters

x
SqlInt64

A SqlInt64 structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlInt64 parameter.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlInt32 to SqlByte.

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

Parameters

x
SqlInt32

A SqlInt32 structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlInt32 parameter.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlDouble to SqlByte.

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

Parameters

x
SqlDouble

A SqlDouble structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlDouble parameter.

Remarks

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

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlDecimal to SqlByte.

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

Parameters

x
SqlDecimal

A SqlDecimal structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlDecimal parameter.

Remarks

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

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 Byte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the supplied SqlByte structure to a byte.

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

Parameters

x
SqlByte

The SqlByte structure to be converted to a byte.

Returns

A byte whose value equals the Value property of the SqlByte parameter.

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the SqlBoolean parameter to a SqlByte.

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

Parameters

x
SqlBoolean

The SqlBoolean parameter to be converted to a SqlByte.

Returns

A SqlByte whose Value property equals the ByteValue of the supplied SqlBoolean parameter.

Remarks

The equivalent method for this operator is SqlBoolean.ToSqlByte()

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 SqlByte)

Source:
SQLByte.cs
Source:
SQLByte.cs
Source:
SQLByte.cs

Converts the SqlInt16 parameter to a SqlByte.

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

Parameters

x
SqlInt16

A SqlInt16 structure.

Returns

A SqlByte structure whose Value property is equal to the Value of the SqlInt16 parameter.

Remarks

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

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