29 references to ToInt16
mscorlib (4)
system\enum.cs (1)
978return Convert.ToInt16(GetValue(), CultureInfo.CurrentCulture);
system\runtime\serialization\formatter.cs (1)
150WriteInt16(Convert.ToInt16(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (1)
82return System.Convert.ToInt16(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
735WriteInt16(Convert.ToInt16(value, CultureInfo.InvariantCulture));
System.Data (20)
fx\src\data\System\Data\Filter\BinaryNode.cs (12)
304value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) + Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 408value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) - Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 496value = Convert.ToInt16((Convert.ToInt16(vLeft, FormatProvider) * Convert.ToInt16(vRight, FormatProvider)), FormatProvider); 562value = 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)) { 346switch ((ODBC32.SQL_NULLABILITY)Convert.ToInt16(getTypeInfoValues[indexNULLABLE], null)) { 365Int16 searchableValue = Convert.ToInt16(getTypeInfoValues[indexSEARCHABLE], null); 429Convert.ToInt16(values[positionOfType], null)) == true){
fx\src\data\System\Data\OleDb\OleDbCommandBuilder.cs (4)
218short direction = Convert.ToInt16(dataRow[parameterDirection, DataRowVersion.Default], CultureInfo.InvariantCulture); 223short wType = Convert.ToInt16(dataRow[dataType, DataRowVersion.Default], CultureInfo.InvariantCulture); 235parameter.PrecisionInternal = (Byte) Convert.ToInt16(dataRow[numericPrecision], CultureInfo.InvariantCulture); 239parameter.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)
5060return Convert.ToInt16(o, CultureInfo.InvariantCulture);
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4320v.data1 = (IntPtr)Convert.ToInt16(var, CultureInfo.InvariantCulture);