101 lines
5.0 KiB
C#
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: 0x020001D1 RID: 465
|
|
[Token(Token = "0x20001D1")]
|
|
[Serializable]
|
|
public sealed class EncoderReplacementFallback : EncoderFallback
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Text.EncoderReplacementFallback" /> class.</summary>
|
|
// Token: 0x0600117E RID: 4478 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600117E")]
|
|
[Address(RVA = "0x2F1C660", Offset = "0x2F1B460", VA = "0x182F1C660")]
|
|
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: 0x0600117F RID: 4479 RVA: 0x00002050 File Offset: 0x00000250
|
|
[Token(Token = "0x600117F")]
|
|
[Address(RVA = "0x2F1C6A0", Offset = "0x2F1B4A0", VA = "0x182F1C6A0")]
|
|
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: 0x170001B8 RID: 440
|
|
// (get) Token: 0x06001180 RID: 4480 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x170001B8")]
|
|
public string DefaultString
|
|
{
|
|
[Token(Token = "0x6001180")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
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: 0x06001181 RID: 4481 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001181")]
|
|
[Address(RVA = "0x2F1C570", Offset = "0x2F1B370", VA = "0x182F1C570", 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: 0x170001B9 RID: 441
|
|
// (get) Token: 0x06001182 RID: 4482 RVA: 0x0000DB00 File Offset: 0x0000BD00
|
|
[Token(Token = "0x170001B9")]
|
|
public override int MaxCharCount
|
|
{
|
|
[Token(Token = "0x6001182")]
|
|
[Address(RVA = "0x2F19D10", Offset = "0x2F18B10", VA = "0x182F19D10", 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: 0x06001183 RID: 4483 RVA: 0x0000DB18 File Offset: 0x0000BD18
|
|
[Token(Token = "0x6001183")]
|
|
[Address(RVA = "0x2F1C5F0", Offset = "0x2F1B3F0", VA = "0x182F1C5F0", 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: 0x06001184 RID: 4484 RVA: 0x0000DB30 File Offset: 0x0000BD30
|
|
[Token(Token = "0x6001184")]
|
|
[Address(RVA = "0x4DA3B0", Offset = "0x4D91B0", VA = "0x1804DA3B0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
// Token: 0x0400090E RID: 2318
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400090E")]
|
|
private string strDefault;
|
|
}
|
|
}
|