class EncoderReplacementFallback

in global :: System . Text

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.


public EncoderReplacementFallback( string replacement )

Initializes a new instance of the class using a specified replacement string.

  • replacement A string that is converted in an encoding operation in place of an input character that cannot be encoded.

public string DefaultString { get; }

Gets the replacement string that is the value of the object.

  • Returns A substitute string that is used in place of an input character that cannot be encoded.

public bool Equals( object value )

Indicates whether the value of a specified object is equal to the object.

  • value A object.
  • Returns if the parameter specifies an object and the replacement string of that object is equal to the replacement string of this object; otherwise, .

public int MaxCharCount { get; }

Gets the number of characters in the replacement string for the object.

  • Returns The number of characters in the string used in place of an input character that cannot be encoded.

public EncoderFallbackBuffer CreateFallbackBuffer( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public EncoderReplacementFallback( )

😔 No documentation found.