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"/>. 176if (!TryEncode(destination, out int bytesWritten))
System.Security.Cryptography.Pkcs (6)
src\libraries\Common\src\System\Security\Cryptography\PasswordBasedEncryption.cs (1)
414if (!source.TryEncode(sourceRent, out _))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
182if (!contentsWriter.TryEncode(rentedAuthSafe, out int written))
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (1)
70return writer.TryEncode(destination, out bytesWritten);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (3)
134return writer.TryEncode(destination, out bytesWritten); 152return writer.TryEncode(destination, out bytesWritten); 170return writer.TryEncode(destination, out bytesWritten);