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 input character that cannot be converted to an output byte sequence. The fallback throws an exception if an input character cannot be converted to an output byte sequence. This class cannot be inherited.</summary>
|
|
// Token: 0x020001D2 RID: 466
|
|
[Token(Token = "0x20001D2")]
|
|
[Serializable]
|
|
public sealed class EncoderExceptionFallback : EncoderFallback
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderExceptionFallback" /> class.</summary>
|
|
// Token: 0x06001189 RID: 4489 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x6001189")]
|
|
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
|
public EncoderExceptionFallback()
|
|
{
|
|
}
|
|
|
|
/// <summary>Returns an encoder fallback buffer that throws an exception if it cannot convert a character sequence to a byte sequence.</summary>
|
|
/// <returns>An encoder fallback buffer that throws an exception when it cannot encode a character sequence.</returns>
|
|
// Token: 0x0600118A RID: 4490 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x600118A")]
|
|
[Address(RVA = "0xD25460", Offset = "0xD24460", VA = "0x180D25460", Slot = "4")]
|
|
public override EncoderFallbackBuffer CreateFallbackBuffer()
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Gets the maximum number of characters this instance can return.</summary>
|
|
/// <returns>The return value is always zero.</returns>
|
|
// Token: 0x170001B6 RID: 438
|
|
// (get) Token: 0x0600118B RID: 4491 RVA: 0x0000DCB0 File Offset: 0x0000BEB0
|
|
[Token(Token = "0x170001B6")]
|
|
public override int MaxCharCount
|
|
{
|
|
[Token(Token = "0x600118B")]
|
|
[Address(RVA = "0x4242C0", Offset = "0x4232C0", VA = "0x1804242C0", Slot = "5")]
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Indicates whether the current <see cref="T:System.Text.EncoderExceptionFallback" /> object and a specified object are equal.</summary>
|
|
/// <param name="value">An object that derives from the <see cref="T:System.Text.EncoderExceptionFallback" /> class.</param>
|
|
/// <returns>
|
|
/// <see langword="true" /> if <paramref name="value" /> is not <see langword="null" /> (<see langword="Nothing" /> in Visual Basic .NET) and is a <see cref="T:System.Text.EncoderExceptionFallback" /> object; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x0600118C RID: 4492 RVA: 0x0000DCC8 File Offset: 0x0000BEC8
|
|
[Token(Token = "0x600118C")]
|
|
[Address(RVA = "0xD254B0", Offset = "0xD244B0", VA = "0x180D254B0", 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: 0x0600118D RID: 4493 RVA: 0x0000DCE0 File Offset: 0x0000BEE0
|
|
[Token(Token = "0x600118D")]
|
|
[Address(RVA = "0xD25500", Offset = "0xD24500", VA = "0x180D25500", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
}
|