SqlInt16.Explicit Operator

Definition

Converts to and from a SqlInt16.

Overloads

Explicit(SqlString to SqlInt16)

Converts the supplied SqlString object to SqlInt16.

Explicit(SqlSingle to SqlInt16)

Converts the supplied SqlSingle structure to SqlInt16.

Explicit(SqlMoney to SqlInt16)

Converts the supplied SqlMoney structure to SqlInt16.

Explicit(SqlInt64 to SqlInt16)

Converts the supplied SqlInt64 structure to SqlInt16.

Explicit(SqlInt16 to Int16)

Converts the supplied SqlInt16 structure to a short integer.

Explicit(SqlDouble to SqlInt16)

Converts the supplied SqlDouble structure to SqlInt16.

Explicit(SqlDecimal to SqlInt16)

Converts the supplied SqlDecimal structure to SqlInt16.

Explicit(SqlBoolean to SqlInt16)

Converts the supplied SqlBoolean structure to SqlInt16.

Explicit(SqlInt32 to SqlInt16)

Converts the supplied SqlInt32 structure to SqlInt16.

Explicit(SqlString to SqlInt16)

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlString object to SqlInt16.

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

Parameters

x
SqlString

A SqlString object.

Returns

A new SqlInt16 structure whose Value property is equal to the value represented by the SqlString object parameter.

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlSingle structure to SqlInt16.

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

Parameters

x
SqlSingle

A SqlSingle structure.

Returns

A new SqlInt16 structure whose Value property is equal to the integer part of the SqlSingle parameter.

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlMoney structure to SqlInt16.

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

Parameters

x
SqlMoney

A SqlMoney structure.

Returns

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

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlInt64 structure to SqlInt16.

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

Parameters

x
SqlInt64

A SqlInt64 structure.

Returns

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

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlInt16 structure to a short integer.

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

Parameters

x
SqlInt16

A SqlInt16 structure.

Returns

A short integer whose value is the Value of the SqlInt16 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(SqlDouble to SqlInt16)

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlDouble structure to SqlInt16.

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

Parameters

x
SqlDouble

A SqlDouble structure.

Returns

A new SqlInt16 structure whose Value property is equal to the integer part of the SqlDouble parameter.

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlDecimal structure to SqlInt16.

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

Parameters

x
SqlDecimal

A SqlDecimal structure.

Returns

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

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlBoolean structure to SqlInt16.

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

Parameters

x
SqlBoolean

A SqlBoolean structure.

Returns

A new SqlInt16 structure whose Value property is equal to the ByteValue property of the SqlBoolean parameter.

Remarks

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

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

Source:
SQLInt16.cs
Source:
SQLInt16.cs
Source:
SQLInt16.cs

Converts the supplied SqlInt32 structure to SqlInt16.

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

Parameters

x
SqlInt32

A SqlInt32 structure.

Returns

A new SqlInt16 structure whose Value property is equal to the Value of the supplied SqlInt32 parameter.

Remarks

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

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