Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Text.​DecoderExceptionFallback

Assembly: System.Runtime

Inheritance: object → DecoderFallback → DecoderExceptionFallback

Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an input character. The fallback throws an exception instead of decoding the input byte sequence. This class cannot be inherited.

Properties

public int
MaxCharCount
Gets the maximum number of characters this instance can return.

Methods

CreateFallbackBuffer​()
Returns a decoder fallback buffer that throws an exception if it cannot convert a sequence of bytes to a character.
Returns A decoder fallback buffer that throws an exception when it cannot decode a byte sequence.
public bool
Equals​(object value)
Indicates whether the current <see cref="T:System.Text.DecoderExceptionFallback" /> object and a specified object are equal.
Returns <see langword="true" /> if <paramref name="value" /> is not <see langword="null" /> and is a <see cref="T:System.Text.DecoderExceptionFallback" /> object; otherwise, <see langword="false" /> .
value An object that derives from the <see cref="T:System.Text.DecoderExceptionFallback" /> class.
public int
GetHashCode​()
Retrieves the hash code for this instance.
Returns The return value is always the same arbitrary value, and has no special significance.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Gets the <see cref="T:System.Type" /> of the current instance.
Returns The exact runtime type of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Creates a shallow copy of the current <see cref="T:System.Object" /> .
Returns A shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns a string that represents the current object.
Returns A string that represents the current object.