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.​DecoderReplacementFallback
Assembly: System.Runtime
Inheritance: object → DecoderFallback → DecoderReplacementFallback
Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character. The fallback emits a user-specified replacement string instead of a decoded input byte sequence. This class cannot be inherited.
Properties
public
string
DefaultString
Gets the replacement string that is the value of the <see cref="T:System.Text.DecoderReplacementFallback" /> object.
public
int
MaxCharCount
Gets the number of characters in the replacement string for the <see cref="T:System.Text.DecoderReplacementFallback" /> object.
Methods
public
DecoderFallbackBuffer
CreateFallbackBuffer​() Returns A <see cref="T:System.Text.DecoderFallbackBuffer" /> object that specifies a string to use instead of the original decoding operation input.
Creates a <see cref="T:System.Text.DecoderFallbackBuffer" /> object that is initialized with the replacement string of this <see cref="T:System.Text.DecoderReplacementFallback" /> object.
public
bool
Equals​(object value)
value
A <see cref="T:System.Text.DecoderReplacementFallback" /> object.
Returns <see langword="true" /> if <paramref name="value" /> is a <see cref="T:System.Text.DecoderReplacementFallback" /> object having a <see cref="P:System.Text.DecoderReplacementFallback.DefaultString" /> property that is equal to the <see cref="P:System.Text.DecoderReplacementFallback.DefaultString" /> property of the current <see cref="T:System.Text.DecoderReplacementFallback" /> object; otherwise, <see langword="false" /> .
Indicates whether the value of a specified object is equal to the <see cref="T:System.Text.DecoderReplacementFallback" /> object.
public
int
GetHashCode​() Returns The hash code of the value of the object.
Retrieves the hash code for the value of the <see cref="T:System.Text.DecoderReplacementFallback" /> object.
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.