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 when it cannot decode a byte sequence.
Returns a decoder fallback buffer that throws an exception if it cannot convert a sequence of bytes to a character.
public bool
Equals​(object value)
value An object that derives from the <see cref="T:System.Text.DecoderExceptionFallback" /> class.
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" /> .
Indicates whether the current <see cref="T:System.Text.DecoderExceptionFallback" /> object and a specified object are equal.
public int
GetHashCode​()
Returns The return value is always the same arbitrary value, and has no special significance.
Retrieves the hash code for this instance.
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
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates 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.