8 references to ToByteArray
System.Formats.Cbor (1)
System\Formats\Cbor\CborHelpers.netcoreapp.cs (1)
16=> value.ToByteArray(isUnsigned: true, isBigEndian: true);
System.Runtime.Numerics (3)
System\Numerics\BigInteger.cs (3)
1867public byte[] ToByteArray() => ToByteArray(isUnsigned: false, isBigEndian: false); 1940/// <summary>Gets the number of bytes that will be output by <see cref="ToByteArray(bool, bool)"/> and <see cref="TryWriteBytes(Span{byte}, out int, bool, bool)"/>.</summary> 1959/// <summary>Shared logic for <see cref="ToByteArray(bool, bool)"/>, <see cref="TryWriteBytes(Span{byte}, out int, bool, bool)"/>, and <see cref="GetByteCount"/>.</summary>
System.Security.Cryptography (4)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\DSAKeyFormatHelper.cs (4)
78P = p.ToByteArray(isUnsigned: true, isBigEndian: true), 79Q = q.ToByteArray(isUnsigned: true, isBigEndian: true), 147P = p.ToByteArray(isUnsigned: true, isBigEndian: true), 148Q = q.ToByteArray(isUnsigned: true, isBigEndian: true),