25 references to ToInt16
System.Data.Common (12)
System\Data\Filter\BinaryNode.cs (12)
366value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) + Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 529value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) - Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 668value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) * Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 774value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) / Convert.ToInt16(vRight, FormatProvider)), FormatProvider);
System.Data.Odbc (4)
System\Data\Odbc\OdbcMetaDataFactory.cs (4)
342(Convert.ToInt16(getTypeInfoValues[indexAUTO_UNIQUE_VALUE], null) == 0)) 357switch ((ODBC32.SQL_NULLABILITY)Convert.ToInt16(getTypeInfoValues[indexNULLABLE], null)) 376short searchableValue = Convert.ToInt16(getTypeInfoValues[indexSEARCHABLE], null); 444Convert.ToInt16(values[positionOfType], null)))
System.Data.OleDb (4)
OleDbCommandBuilder.cs (4)
244short direction = Convert.ToInt16(dataRow[parameterDirection, DataRowVersion.Default], CultureInfo.InvariantCulture); 250short wType = Convert.ToInt16(dataRow[dataType, DataRowVersion.Default], CultureInfo.InvariantCulture); 265parameter.PrecisionInternal = (byte)Convert.ToInt16(dataRow[numericPrecision], CultureInfo.InvariantCulture); 270parameter.ScaleInternal = (byte)Convert.ToInt16(dataRow[numericScale], CultureInfo.InvariantCulture);
System.Management (2)
System\Management\Property.cs (2)
404((short[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i), (IFormatProvider)culInfo.GetFormat(typeof(short))); 522wmiValue = Convert.ToInt16(val, (IFormatProvider)culInfo.GetFormat(typeof(short)));
System.Runtime.Serialization.Formatters (2)
System\Runtime\Serialization\Formatter.cs (1)
118WriteInt16(Convert.ToInt16(data, CultureInfo.InvariantCulture), memberName);
System\Runtime\Serialization\FormatterConverter.cs (1)
58return System.Convert.ToInt16(value, CultureInfo.InvariantCulture);
System.Windows.Forms (1)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3837return Convert.ToInt16(o, CultureInfo.InvariantCulture);