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.​EncoderExceptionFallback

Assembly: System.Runtime

Inheritance: object → EncoderFallback → EncoderExceptionFallback

Provides a failure-handling mechanism, called a fallback, for an input character that cannot be converted to an output byte sequence. The fallback throws an exception if an input character cannot be converted to an output byte sequence. This class cannot be inherited.

Properties

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

Methods

CreateFallbackBuffer​()
Returns An encoder fallback buffer that throws an exception when it cannot encode a character sequence.
Returns an encoder fallback buffer that throws an exception if it cannot convert a character sequence to a byte sequence.
public bool
Equals​(object value)
value An object that derives from the <see cref="T:System.Text.EncoderExceptionFallback" /> class.
Returns <see langword="true" /> if <paramref name="value" /> is not <see langword="null" /> ( <see langword="Nothing" /> in Visual Basic .NET) and is a <see cref="T:System.Text.EncoderExceptionFallback" /> object; otherwise, <see langword="false" /> .
Indicates whether the current <see cref="T:System.Text.EncoderExceptionFallback" /> 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.