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

101 lines
5.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 uses a user-specified replacement string instead of the original input character. This class cannot be inherited.</summary>
// Token: 0x020001D8 RID: 472
[Token(Token = "0x20001D8")]
[Serializable]
public sealed class EncoderReplacementFallback : EncoderFallback
{
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderReplacementFallback" /> class.</summary>
// Token: 0x060011B9 RID: 4537 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011B9")]
[Address(RVA = "0xD27260", Offset = "0xD26260", VA = "0x180D27260")]
public EncoderReplacementFallback()
{
}
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderReplacementFallback" /> class using a specified replacement string.</summary>
/// <param name="replacement">A string that is converted in an encoding operation in place of an input character that cannot be encoded.</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 does not consist of one high surrogate component followed by one low surrogate component.</exception>
// Token: 0x060011BA RID: 4538 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x60011BA")]
[Address(RVA = "0xD272A0", Offset = "0xD262A0", VA = "0x180D272A0")]
public EncoderReplacementFallback(string replacement)
{
}
/// <summary>Gets the replacement string that is the value of the <see cref="T:System.Text.EncoderReplacementFallback" /> object.</summary>
/// <returns>A substitute string that is used in place of an input character that cannot be encoded.</returns>
// Token: 0x170001C0 RID: 448
// (get) Token: 0x060011BB RID: 4539 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x170001C0")]
public string DefaultString
{
[Token(Token = "0x60011BB")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return null;
}
}
/// <summary>Creates a <see cref="T:System.Text.EncoderFallbackBuffer" /> object that is initialized with the replacement string of this <see cref="T:System.Text.EncoderReplacementFallback" /> object.</summary>
/// <returns>A <see cref="T:System.Text.EncoderFallbackBuffer" /> object equal to this <see cref="T:System.Text.EncoderReplacementFallback" /> object.</returns>
// Token: 0x060011BC RID: 4540 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x60011BC")]
[Address(RVA = "0xD27170", Offset = "0xD26170", VA = "0x180D27170", Slot = "4")]
public override EncoderFallbackBuffer CreateFallbackBuffer()
{
return null;
}
/// <summary>Gets the number of characters in the replacement string for the <see cref="T:System.Text.EncoderReplacementFallback" /> object.</summary>
/// <returns>The number of characters in the string used in place of an input character that cannot be encoded.</returns>
// Token: 0x170001C1 RID: 449
// (get) Token: 0x060011BD RID: 4541 RVA: 0x0000DE30 File Offset: 0x0000C030
[Token(Token = "0x170001C1")]
public override int MaxCharCount
{
[Token(Token = "0x60011BD")]
[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.EncoderReplacementFallback" /> object.</summary>
/// <param name="value">A <see cref="T:System.Text.EncoderReplacementFallback" /> object.</param>
/// <returns>
/// <see langword="true" /> if the <paramref name="value" /> parameter specifies an <see cref="T:System.Text.EncoderReplacementFallback" /> object and the replacement string of that object is equal to the replacement string of this <see cref="T:System.Text.EncoderReplacementFallback" /> object; otherwise, <see langword="false" />.</returns>
// Token: 0x060011BE RID: 4542 RVA: 0x0000DE48 File Offset: 0x0000C048
[Token(Token = "0x60011BE")]
[Address(RVA = "0xD271F0", Offset = "0xD261F0", VA = "0x180D271F0", 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.EncoderReplacementFallback" /> object.</summary>
/// <returns>The hash code of the value of the object.</returns>
// Token: 0x060011BF RID: 4543 RVA: 0x0000DE60 File Offset: 0x0000C060
[Token(Token = "0x60011BF")]
[Address(RVA = "0x52DDC0", Offset = "0x52CDC0", VA = "0x18052DDC0", Slot = "2")]
public override int GetHashCode()
{
return 0;
}
// Token: 0x04000918 RID: 2328
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4000918")]
private string strDefault;
}
}