When overridden in a derived class, calculates the maximum number of bytes produced by encoding the specified number of characters.
Namespace: CryptSharp.UtilityAssembly: CryptSharp (in CryptSharp.dll) Version: 2.0.0.0
Syntax
Parameters
- charCount
- Type: System Int32
The number of characters to encode.
Return Value
The maximum number of bytes produced by encoding the specified number of characters.Exceptions
Exception | Condition |
---|---|
System ArgumentOutOfRangeException | charCount is less than zero. |
System.Text EncoderFallbackException | A fallback occurred (see Understanding Encodings for complete explanation)-and-EncoderFallback is set to EncoderExceptionFallback. |
See Also