SqlInt16.Implicit Operator

Definition

Converts to a SqlInt16 structure.

Overloads

Implicit(SqlByte to SqlInt16)

Converts the supplied SqlByte structure to SqlInt16.

Implicit(Int16 to SqlInt16)

Converts the supplied short integer to SqlInt16.

Implicit(SqlByte to SqlInt16)

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

Converts the supplied SqlByte structure to SqlInt16.

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

Parameters

x
SqlByte

A SqlByte structure.

Returns

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

Remarks

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

See also

Applies to

.NET 9 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
.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

Implicit(Int16 to SqlInt16)

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

Converts the supplied short integer to SqlInt16.

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

Parameters

x
Int16

A short integer value.

Returns

A SqlInt16 structure with the same value as the specified short integer.

See also

Applies to

.NET 9 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
.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