29 references to ToInt16
mscorlib (4)
system\enum.cs (1)
978
return Convert.
ToInt16
(GetValue(), CultureInfo.CurrentCulture);
system\runtime\serialization\formatter.cs (1)
150
WriteInt16(Convert.
ToInt16
(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (1)
82
return System.Convert.
ToInt16
(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
735
WriteInt16(Convert.
ToInt16
(value, CultureInfo.InvariantCulture));
System.Data (20)
fx\src\data\System\Data\Filter\BinaryNode.cs (12)
304
value = Convert.
ToInt16
((Convert.
ToInt16
(vLeft, FormatProvider) + Convert.
ToInt16
(vRight, FormatProvider)), FormatProvider);
408
value = Convert.
ToInt16
((Convert.
ToInt16
(vLeft, FormatProvider) - Convert.
ToInt16
(vRight, FormatProvider)), FormatProvider);
496
value = Convert.
ToInt16
((Convert.
ToInt16
(vLeft, FormatProvider) * Convert.
ToInt16
(vRight, FormatProvider)), FormatProvider);
562
value = Convert.
ToInt16
((Convert.
ToInt16
(vLeft, FormatProvider) / Convert.
ToInt16
(vRight, FormatProvider)), FormatProvider);
fx\src\data\System\Data\Odbc\odbcmetadatafactory.cs (4)
334
(Convert.
ToInt16
(getTypeInfoValues[indexAUTO_UNIQUE_VALUE], null) == 0)) {
346
switch ((ODBC32.SQL_NULLABILITY)Convert.
ToInt16
(getTypeInfoValues[indexNULLABLE], null)) {
365
Int16 searchableValue = Convert.
ToInt16
(getTypeInfoValues[indexSEARCHABLE], null);
429
Convert.
ToInt16
(values[positionOfType], null)) == true){
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (4)
218
short direction = Convert.
ToInt16
(dataRow[parameterDirection, DataRowVersion.Default], CultureInfo.InvariantCulture);
223
short wType = Convert.
ToInt16
(dataRow[dataType, DataRowVersion.Default], CultureInfo.InvariantCulture);
235
parameter.PrecisionInternal = (Byte) Convert.
ToInt16
(dataRow[numericPrecision], CultureInfo.InvariantCulture);
239
parameter.ScaleInternal = (Byte) Convert.
ToInt16
(dataRow[numericScale], CultureInfo.InvariantCulture);
System.Management (2)
property.cs (2)
424
((Int16[])(wmiValue))[i] = Convert.
ToInt16
(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Int16)));
547
wmiValue = Convert.
ToInt16
(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Int16)));
System.Web (1)
UI\ObjectConverter.cs (1)
69
return Convert.
ToInt16
((Int16)value, CultureInfo.InvariantCulture);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\AxHost.cs (1)
5060
return Convert.
ToInt16
(o, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4320
v.data1 = (IntPtr)Convert.
ToInt16
(var, CultureInfo.InvariantCulture);