9 references to TryEncode
System.Formats.Asn1 (3)
System\Formats\Asn1\AsnWriter.cs (3)
102
/// Gets the number of bytes that would be written by <see cref="
TryEncode
"/>.
105
/// The number of bytes that would be written by <see cref="
TryEncode
"/>.
176
if (!
TryEncode
(destination, out int bytesWritten))
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
414
if (!source.
TryEncode
(sourceRent, out _))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
182
if (!contentsWriter.
TryEncode
(rentedAuthSafe, out int written))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
70
return writer.
TryEncode
(destination, out bytesWritten);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
134
return writer.
TryEncode
(destination, out bytesWritten);
152
return writer.
TryEncode
(destination, out bytesWritten);
170
return writer.
TryEncode
(destination, out bytesWritten);