Export (0) Print
Expand All

EncoderFallbackBuffer.Fallback Method (Char, Char, Int32)

When overridden in a derived class, prepares the fallback buffer to handle the specified surrogate pair.

Namespace: System.Text
Assembly: mscorlib (in mscorlib.dll)

public abstract bool Fallback (
	char charUnknownHigh,
	char charUnknownLow,
	int index
)
public abstract boolean Fallback (
	char charUnknownHigh, 
	char charUnknownLow, 
	int index
)
public abstract function Fallback (
	charUnknownHigh : char, 
	charUnknownLow : char, 
	index : int
) : boolean
Not applicable.

Parameters

charUnknownHigh

The high surrogate of the input pair.

charUnknownLow

The low surrogate of the input pair.

index

The index position of the surrogate pair in the input buffer.

Return Value

True if the fallback buffer can process charUnknownHigh and charUnknownLow; false if fallback buffer ignores the surrogate pair.

The GetBytes and Convert methods call Fallback if they encounter a surrogate pair in their input. If the return value of Fallback is true, the fallback buffer can process the surrogate pair. In the case of a replacement fallback, for example, the calling method can invoke the GetNextChar method to obtain each character of the fallback buffer.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft