System.Text.EncoderReplacementFallbackBuffer.GetNextChar Method

Retrieves the next character in the replacement fallback buffer.

Syntax

public override char GetNextChar ()

Returns

The next Unicode character in the replacement fallback buffer that the application can encode.

Remarks

The erload:System.Text.Encoding.GetBytes and erload:System.Text.Encoder.Convert methods call erload:System.Text.EncoderReplacementFallbackBuffer.Fallback if they encounter an unknown surrogate pair or character in their input. If the return value of erload:System.Text.EncoderReplacementFallbackBuffer.Fallback is true, the calling method can invoke EncoderReplacementFallbackBuffer.GetNextChar to obtain each character in the replacement fallback buffer.

Requirements

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0