68 lines
3.0 KiB
C#
68 lines
3.0 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Text
|
|
{
|
|
/// <summary>Provides a failure-handling mechanism, called a fallback, for an encoded input byte sequence that cannot be converted to an input character. The fallback throws an exception instead of decoding the input byte sequence. This class cannot be inherited.</summary>
|
|
// Token: 0x020001C7 RID: 455
|
|
[Token(Token = "0x20001C7")]
|
|
[Serializable]
|
|
public sealed class DecoderExceptionFallback : DecoderFallback
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderExceptionFallback" /> class.</summary>
|
|
// Token: 0x06001135 RID: 4405 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001135")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public DecoderExceptionFallback()
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns a decoder fallback buffer that throws an exception if it cannot convert a sequence of bytes to a character.</summary>
|
|
/// <returns>A decoder fallback buffer that throws an exception when it cannot decode a byte sequence.</returns>
|
|
// Token: 0x06001136 RID: 4406 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001136")]
|
|
[Address(RVA = "0xD22000", Offset = "0xD21000", VA = "0x180D22000", Slot = "4")]
|
|
public override DecoderFallbackBuffer CreateFallbackBuffer()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the maximum number of characters this instance can return.</summary>
|
|
/// <returns>The return value is always zero.</returns>
|
|
// Token: 0x170001A4 RID: 420
|
|
// (get) Token: 0x06001137 RID: 4407 RVA: 0x0000D968 File Offset: 0x0000BB68
|
|
[Token(Token = "0x170001A4")]
|
|
public override int MaxCharCount
|
|
{
|
|
[Token(Token = "0x6001137")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "5")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Indicates whether the current <see cref="T:System.Text.DecoderExceptionFallback" /> object and a specified object are equal.</summary>
|
|
/// <param name="value">An object that derives from the <see cref="T:System.Text.DecoderExceptionFallback" /> class.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="value" /> is not <see langword="null" /> and is a <see cref="T:System.Text.DecoderExceptionFallback" /> object; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x06001138 RID: 4408 RVA: 0x0000D980 File Offset: 0x0000BB80
|
|
[Token(Token = "0x6001138")]
|
|
[Address(RVA = "0xD22050", Offset = "0xD21050", VA = "0x180D22050", Slot = "0")]
|
|
public override bool Equals(object value)
|
|
{
|
|
return default(bool);
|
|
}
|
|
|
|
/// <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>
|
|
// Token: 0x06001139 RID: 4409 RVA: 0x0000D998 File Offset: 0x0000BB98
|
|
[Token(Token = "0x6001139")]
|
|
[Address(RVA = "0xD220A0", Offset = "0xD210A0", VA = "0x180D220A0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
}
|