53 lines
2.2 KiB
C#
53 lines
2.2 KiB
C#
using System;
|
|
|
|
namespace System.Text
|
|
{
|
|
/// <summary>Throws <see cref="T:System.Text.DecoderFallbackException" /> if an encoded input byte sequence cannot be converted to a decoded output character. This class cannot be inherited.</summary>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x020005E2 RID: 1506
|
|
[Serializable]
|
|
public sealed class DecoderExceptionFallback : DecoderFallback
|
|
{
|
|
/// <summary>Gets the maximum number of characters this instance can return.</summary>
|
|
/// <returns>The return value is always zero.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x17000AB7 RID: 2743
|
|
// (get) Token: 0x060036E1 RID: 14049 RVA: 0x000BC76C File Offset: 0x000BA96C
|
|
public override int MaxCharCount
|
|
{
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderExceptionFallback" /> class. </summary>
|
|
/// <returns>A <see cref="T:System.Text.DecoderFallbackBuffer" /> object.</returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x060036E2 RID: 14050 RVA: 0x000BC770 File Offset: 0x000BA970
|
|
public override DecoderFallbackBuffer CreateFallbackBuffer()
|
|
{
|
|
return new DecoderExceptionFallbackBuffer();
|
|
}
|
|
|
|
/// <summary>Indicates whether the current <see cref="T:System.Text.DecoderExceptionFallback" /> object and a specified object are equal.</summary>
|
|
/// <returns>true if <paramref name="value" /> is not null and is a <see cref="T:System.Text.DecoderExceptionFallback" /> object; otherwise, false.</returns>
|
|
/// <param name="value">An object that derives from the <see cref="T:System.Text.DecoderExceptionFallback" /> class.</param>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x060036E3 RID: 14051 RVA: 0x000BC778 File Offset: 0x000BA978
|
|
public override bool Equals(object value)
|
|
{
|
|
return value is DecoderExceptionFallback;
|
|
}
|
|
|
|
/// <summary>Retrieves the hash code for this instance.</summary>
|
|
/// <returns>The return value is always the same arbitrary value, and has no special significance. </returns>
|
|
/// <filterpriority>2</filterpriority>
|
|
// Token: 0x060036E4 RID: 14052 RVA: 0x000BC784 File Offset: 0x000BA984
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
}
|