70 lines
3.0 KiB
C#
70 lines
3.0 KiB
C#
using System;
|
|
|
|
namespace System.Text
|
|
{
|
|
/// <summary>Provides a failure-handling mechanism, called a fallback, for an input character that cannot be converted to an encoded output byte sequence. </summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020005EC RID: 1516
|
|
[Serializable]
|
|
public abstract class EncoderFallback
|
|
{
|
|
/// <summary>Gets an object that throws an exception when an input character cannot be encoded.</summary>
|
|
/// <returns>A type derived from the <see cref="T:System.Text.EncoderFallback" /> class. The default value is a <see cref="T:System.Text.EncoderExceptionFallback" /> object.</returns>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x17000AC7 RID: 2759
|
|
// (get) Token: 0x06003723 RID: 14115 RVA: 0x000BCD98 File Offset: 0x000BAF98
|
|
public static EncoderFallback ExceptionFallback
|
|
{
|
|
get
|
|
{
|
|
return EncoderFallback.exception_fallback;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, gets the maximum number of characters the current <see cref="T:System.Text.EncoderFallback" /> object can return.</summary>
|
|
/// <returns>The maximum number of characters the current <see cref="T:System.Text.EncoderFallback" /> object can return.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x17000AC8 RID: 2760
|
|
// (get) Token: 0x06003724 RID: 14116
|
|
public abstract int MaxCharCount { get; }
|
|
|
|
/// <summary>Gets an object that outputs a substitute string in place of an input character that cannot be encoded.</summary>
|
|
/// <returns>A type derived from the <see cref="T:System.Text.EncoderFallback" /> class. The default value is a <see cref="T:System.Text.EncoderReplacementFallback" /> object that replaces unknown input characters with the QUESTION MARK character ("?", U+003F).</returns>
|
|
/// <filterpriority>1</filterpriority>
|
|
// Token: 0x17000AC9 RID: 2761
|
|
// (get) Token: 0x06003725 RID: 14117 RVA: 0x000BCDA0 File Offset: 0x000BAFA0
|
|
public static EncoderFallback ReplacementFallback
|
|
{
|
|
get
|
|
{
|
|
return EncoderFallback.replacement_fallback;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17000ACA RID: 2762
|
|
// (get) Token: 0x06003726 RID: 14118 RVA: 0x000BCDA8 File Offset: 0x000BAFA8
|
|
internal static EncoderFallback StandardSafeFallback
|
|
{
|
|
get
|
|
{
|
|
return EncoderFallback.standard_safe_fallback;
|
|
}
|
|
}
|
|
|
|
/// <summary>When overridden in a derived class, initializes a new instance of the <see cref="T:System.Text.EncoderFallbackBuffer" /> class. </summary>
|
|
/// <returns>An object that provides a fallback buffer for an encoder.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x06003727 RID: 14119
|
|
public abstract EncoderFallbackBuffer CreateFallbackBuffer();
|
|
|
|
// Token: 0x04001678 RID: 5752
|
|
private static EncoderFallback exception_fallback = new EncoderExceptionFallback();
|
|
|
|
// Token: 0x04001679 RID: 5753
|
|
private static EncoderFallback replacement_fallback = new EncoderReplacementFallback();
|
|
|
|
// Token: 0x0400167A RID: 5754
|
|
private static EncoderFallback standard_safe_fallback = new EncoderReplacementFallback("\ufffd");
|
|
}
|
|
}
|