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.​EncoderReplacementFallback
Assembly: System.Runtime
Inheritance: object → EncoderFallback → EncoderReplacementFallback
Provides a failure handling mechanism, called a fallback, for an input character that cannot be converted to an output byte sequence. The fallback uses a user-specified replacement string instead of the original input character. This class cannot be inherited.
Properties
public
string
DefaultString
Gets the replacement string that is the value of the <see cref="T:System.Text.EncoderReplacementFallback" /> object.
public
int
MaxCharCount
Gets the number of characters in the replacement string for the <see cref="T:System.Text.EncoderReplacementFallback" /> object.
Methods
public
EncoderFallbackBuffer
CreateFallbackBuffer​() Returns A <see cref="T:System.Text.EncoderFallbackBuffer" /> object equal to this <see cref="T:System.Text.EncoderReplacementFallback" /> object.
Creates a <see cref="T:System.Text.EncoderFallbackBuffer" /> object that is initialized with the replacement string of this <see cref="T:System.Text.EncoderReplacementFallback" /> object.
public
bool
Equals​(object value)
value
A <see cref="T:System.Text.EncoderReplacementFallback" /> object.
Returns <see langword="true" /> if the <paramref name="value" /> parameter specifies an <see cref="T:System.Text.EncoderReplacementFallback" /> object and the replacement string of that object is equal to the replacement string of this <see cref="T:System.Text.EncoderReplacementFallback" /> object; otherwise, <see langword="false" /> .
Indicates whether the value of a specified object is equal to the <see cref="T:System.Text.EncoderReplacementFallback" /> 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.EncoderReplacementFallback" /> 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.