Throws an exception because the input character cannot be encoded. Parameters specify the value and index position of the character that cannot be converted.
![]()
None. No value is returned because the EncoderExceptionFallbackBuffer.Fallback(char, int) method always throws an exception.
The erload:System.Text.Encoding.GetBytes and erload:System.Text.Encoder.Convert methods call EncoderExceptionFallbackBuffer.Fallback(char, int) if they encounter an unknown character in their input. In response, EncoderExceptionFallbackBuffer.Fallback(char, int) always throws System.Text.EncoderFallbackException.