DecoderReplacementFallbackBuffer.GetNextChar 方法
定义
检索替换回退缓冲区中的下一个字符。Retrieves the next character in the replacement fallback buffer.
public:
override char GetNextChar();
public override char GetNextChar ();
override this.GetNextChar : unit -> char
Public Overrides Function GetNextChar () As Char
返回
替换回退缓冲区中的下一个字符。The next character in the replacement fallback buffer.
注解
Encoding.GetBytes如果和 Decoder.Convert 方法 Fallback 在输入中遇到未知的代理项对或字符,则调用。The Encoding.GetBytes and Decoder.Convert methods call Fallback if they encounter an unknown surrogate pair or character in their input. 如果的返回值 Fallback 为 true ,则调用方法可以调用 GetNextChar 以获取替换回退缓冲区的每个字符。If the return value of Fallback is true, the calling method can invoke GetNextChar to obtain each character of the replacement fallback buffer.