using System;
namespace System.Text
{
/// Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an output character.
/// 2
// Token: 0x020005E4 RID: 1508
[Serializable]
public abstract class DecoderFallback
{
/// Gets an object that throws an exception when an input byte sequence cannot be decoded.
/// A type derived from the class. The default value is a object.
/// 1
// Token: 0x17000AB9 RID: 2745
// (get) Token: 0x060036EC RID: 14060 RVA: 0x000BC7D8 File Offset: 0x000BA9D8
public static DecoderFallback ExceptionFallback
{
get
{
return DecoderFallback.exception_fallback;
}
}
/// When overridden in a derived class, gets the maximum number of characters the current object can return.
/// The maximum number of characters the current object can return.
/// 2
// Token: 0x17000ABA RID: 2746
// (get) Token: 0x060036ED RID: 14061
public abstract int MaxCharCount { get; }
/// Gets an object that outputs a substitute string in place of an input byte sequence that cannot be decoded.
/// A type derived from the class. The default value is a object that emits the QUESTION MARK character ("?", U+003F) in place of unknown byte sequences.
/// 1
// Token: 0x17000ABB RID: 2747
// (get) Token: 0x060036EE RID: 14062 RVA: 0x000BC7E0 File Offset: 0x000BA9E0
public static DecoderFallback ReplacementFallback
{
get
{
return DecoderFallback.replacement_fallback;
}
}
// Token: 0x17000ABC RID: 2748
// (get) Token: 0x060036EF RID: 14063 RVA: 0x000BC7E8 File Offset: 0x000BA9E8
internal static DecoderFallback StandardSafeFallback
{
get
{
return DecoderFallback.standard_safe_fallback;
}
}
/// When overridden in a derived class, initializes a new instance of the class.
/// An object that provides a fallback buffer for a decoder.
/// 2
// Token: 0x060036F0 RID: 14064
public abstract DecoderFallbackBuffer CreateFallbackBuffer();
// Token: 0x0400166C RID: 5740
private static DecoderFallback exception_fallback = new DecoderExceptionFallback();
// Token: 0x0400166D RID: 5741
private static DecoderFallback replacement_fallback = new DecoderReplacementFallback();
// Token: 0x0400166E RID: 5742
private static DecoderFallback standard_safe_fallback = new DecoderReplacementFallback("\ufffd");
}
}