21 references to ToUInt16
mscorlib (4)
system\enum.cs (1)
984return Convert.ToUInt16(GetValue(), CultureInfo.CurrentCulture);
system\runtime\serialization\formatter.cs (1)
164WriteUInt16(Convert.ToUInt16(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (1)
91return System.Convert.ToUInt16(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
750WriteUInt16(Convert.ToUInt16(value, CultureInfo.InvariantCulture));
PresentationCore (1)
Core\CSharp\System\Windows\Media\Imaging\BitmapMetadata.cs (1)
1439SetQuery(policy_Rating, System.Convert.ToUInt16(value, CultureInfo.InvariantCulture));
System.Data (13)
fx\src\data\System\Data\Filter\BinaryNode.cs (12)
307value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) + Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 414value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) - Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 502value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) * Convert.ToUInt16(vRight, FormatProvider)), FormatProvider); 568value = Convert.ToUInt16((Convert.ToUInt16(vLeft, FormatProvider) / Convert.ToUInt16(vRight, FormatProvider)), FormatProvider);
fx\src\data\System\Data\OleDb\ColumnBinding.cs (1)
465Value_UI2(Convert.ToUInt16((Int32)value, CultureInfo.InvariantCulture));
System.Management (2)
property.cs (2)
431 ((Int32[])(wmiValue))[i] = (Int32)(Convert.ToUInt16(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16)))); 551 wmiValue = (Int32)(Convert.ToUInt16(val,(IFormatProvider)culInfo.GetFormat(typeof(System.UInt16))));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4359v.data1 = (IntPtr)Convert.ToUInt16(var, CultureInfo.InvariantCulture);