22 references to ToByte
mscorlib (4)
system\enum.cs (1)
972return Convert.ToByte(GetValue(), CultureInfo.CurrentCulture);
system\runtime\serialization\formatter.cs (1)
148WriteByte(Convert.ToByte(data, CultureInfo.InvariantCulture), memberName);
system\runtime\serialization\formatterconverter.cs (1)
74return System.Convert.ToByte(value, CultureInfo.InvariantCulture);
system\runtime\serialization\formatters\binary\binaryformatterwriter.cs (1)
726WriteByte(Convert.ToByte(value, CultureInfo.InvariantCulture));
System.Data (15)
fx\src\data\Microsoft\SqlServer\Server\MetadataUtilsSmi.cs (3)
885precision = Convert.ToByte(temp, null); 893scale = Convert.ToByte(temp, null); 913scale = Convert.ToByte(temp, null);
fx\src\data\System\Data\Filter\BinaryNode.cs (12)
298value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) + Convert.ToByte(vRight, FormatProvider)), FormatProvider); 399value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) - Convert.ToByte(vRight, FormatProvider)), FormatProvider); 487value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) * Convert.ToByte(vRight, FormatProvider)), FormatProvider); 553value = Convert.ToByte((Convert.ToByte(vLeft, FormatProvider) / Convert.ToByte(vRight, FormatProvider)), FormatProvider);
System.Management (2)
property.cs (2)
413 ((Byte[])wmiValue)[i] = Convert.ToByte(valArray.GetValue(i),(IFormatProvider)culInfo.GetFormat(typeof(System.Byte))); 543 wmiValue = Convert.ToByte(val,(IFormatProvider)culInfo.GetFormat(typeof(System.Byte)));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NativeMethods.cs (1)
4308v.data1 = (IntPtr)Convert.ToByte(var, CultureInfo.InvariantCulture);