8 references to ToByte
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\Metadata\PE\LoadingAttributes.cs (5)
64
aByteInst.VerifyValue(0, TypedConstantKind.Primitive, Convert.
ToByte
(1));
136
aByteInst.VerifyValue(0, TypedConstantKind.Primitive, Convert.
ToByte
(1));
272
a.VerifyNamedArgumentValue(0, "B", TypedConstantKind.Primitive, Convert.
ToByte
(1));
978
attrSym.VerifyValue(1, TypedConstantKind.Primitive, Convert.
ToByte
(2));
1139
Assert.Equal(Convert.
ToByte
(255), attrSym.CommonConstructorArguments[1].Value);
PresentationCore (1)
MS\Internal\Ink\InkSerializedFormat\DrawingAttributeSerializer.cs (1)
409
color.A = Convert.
ToByte
(alpha);
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Convert.cs (1)
726
return
ToByte
(ToInt32(value));
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
217
return Convert.
ToByte
(m_value);