Files
27Aug2021-Cpp2IL-Dump/mscorlib/System/Text/DecoderReplacementFallback.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

101 lines
5.2 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 output character. The fallback emits a user-specified replacement string instead of a decoded input byte sequence. This class cannot be inherited.</summary>
// Token: 0x020001CD RID: 461
[Token(Token = "0x20001CD")]
[Serializable]
public sealed class DecoderReplacementFallback : DecoderFallback
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderReplacementFallback" /> class.</summary>
// Token: 0x06001162 RID: 4450 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001162")]
[Address(RVA = "0xD23AE0", Offset = "0xD22AE0", VA = "0x180D23AE0")]
public DecoderReplacementFallback()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.DecoderReplacementFallback" /> class using a specified replacement string.</summary>
/// <param name="replacement">A string that is emitted in a decoding operation in place of an input byte sequence that cannot be decoded.</param>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="replacement" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="replacement" /> contains an invalid surrogate pair. In other words, the surrogate pair does not consist of one high surrogate component followed by one low surrogate component.</exception>
// Token: 0x06001163 RID: 4451 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6001163")]
[Address(RVA = "0xD23B20", Offset = "0xD22B20", VA = "0x180D23B20")]
public DecoderReplacementFallback(string replacement)
{
}
/// <summary>Gets the replacement string that is the value of the <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <returns>A substitute string that is emitted in place of an input byte sequence that cannot be decoded.</returns>
// Token: 0x170001AD RID: 429
// (get) Token: 0x06001164 RID: 4452 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001AD")]
public string DefaultString
{
[Token(Token = "0x6001164")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return null;
}
}
/// <summary>Creates a <see cref="T:System.Text.DecoderFallbackBuffer" /> object that is initialized with the replacement string of this <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <returns>A <see cref="T:System.Text.DecoderFallbackBuffer" /> object that specifies a string to use instead of the original decoding operation input.</returns>
// Token: 0x06001165 RID: 4453 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6001165")]
[Address(RVA = "0xD23A00", Offset = "0xD22A00", VA = "0x180D23A00", Slot = "4")]
public override DecoderFallbackBuffer CreateFallbackBuffer()
{
return null;
}
/// <summary>Gets the number of characters in the replacement string for the <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <returns>The number of characters in the string that is emitted in place of a byte sequence that cannot be decoded, that is, the length of the string returned by the <see cref="P:System.Text.DecoderReplacementFallback.DefaultString" /> property.</returns>
// Token: 0x170001AE RID: 430
// (get) Token: 0x06001166 RID: 4454 RVA: 0x0000DAE8 File Offset: 0x0000BCE8
[Token(Token = "0x170001AE")]
public override int MaxCharCount
{
[Token(Token = "0x6001166")]
[Address(RVA = "0xD23CC0", Offset = "0xD22CC0", VA = "0x180D23CC0", Slot = "5")]
get
{
return 0;
}
}
/// <summary>Indicates whether the value of a specified object is equal to the <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <param name="value">A <see cref="T:System.Text.DecoderReplacementFallback" /> object.</param>
/// <returns>
/// <see langword="true" /> if <paramref name="value" /> is a <see cref="T:System.Text.DecoderReplacementFallback" /> object having a <see cref="P:System.Text.DecoderReplacementFallback.DefaultString" /> property that is equal to the <see cref="P:System.Text.DecoderReplacementFallback.DefaultString" /> property of the current <see cref="T:System.Text.DecoderReplacementFallback" /> object; otherwise, <see langword="false" />.</returns>
// Token: 0x06001167 RID: 4455 RVA: 0x0000DB00 File Offset: 0x0000BD00
[Token(Token = "0x6001167")]
[Address(RVA = "0xD23A70", Offset = "0xD22A70", VA = "0x180D23A70", Slot = "0")]
public override bool Equals(object value)
{
return default(bool);
}
/// <summary>Retrieves the hash code for the value of the <see cref="T:System.Text.DecoderReplacementFallback" /> object.</summary>
/// <returns>The hash code of the value of the object.</returns>
// Token: 0x06001168 RID: 4456 RVA: 0x0000DB18 File Offset: 0x0000BD18
[Token(Token = "0x6001168")]
[Address(RVA = "0x52DDC0", Offset = "0x52CDC0", VA = "0x18052DDC0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x040008F6 RID: 2294
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40008F6")]
private string strDefault;
}
}