54 lines
2.2 KiB
C#
54 lines
2.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Text
|
|
{
|
|
/// <summary>Provides the base class for an encoding provider, which supplies encodings that are unavailable on a particular platform.</summary>
|
|
// Token: 0x020001E0 RID: 480
|
|
[Token(Token = "0x20001E0")]
|
|
[ComVisible(true)]
|
|
public abstract class EncodingProvider
|
|
{
|
|
/// <summary>Returns the encoding with the specified name.</summary>
|
|
/// <param name="name">The name of the requested encoding.</param>
|
|
/// <returns>The encoding that is associated with the specified name, or <see langword="null" /> if this <see cref="T:System.Text.EncodingProvider" /> cannot return a valid encoding that corresponds to <paramref name="name" />.</returns>
|
|
// Token: 0x06001241 RID: 4673
|
|
[Token(Token = "0x6001241")]
|
|
[Address(Slot = "4")]
|
|
public abstract Encoding GetEncoding(string name);
|
|
|
|
/// <summary>Returns the encoding associated with the specified code page identifier.</summary>
|
|
/// <param name="codepage">The code page identifier of the requested encoding.</param>
|
|
/// <returns>The encoding that is associated with the specified code page, or <see langword="null" /> if this <see cref="T:System.Text.EncodingProvider" /> cannot return a valid encoding that corresponds to <paramref name="codepage" />.</returns>
|
|
// Token: 0x06001242 RID: 4674
|
|
[Token(Token = "0x6001242")]
|
|
[Address(Slot = "5")]
|
|
public abstract Encoding GetEncoding(int codepage);
|
|
|
|
// Token: 0x06001243 RID: 4675 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001243")]
|
|
[Address(RVA = "0xD2A710", Offset = "0xD29710", VA = "0x180D2A710")]
|
|
internal static Encoding GetEncodingFromProvider(int codepage)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x06001244 RID: 4676 RVA: 0x00002082 File Offset: 0x00000282
|
|
[Token(Token = "0x6001244")]
|
|
[Address(RVA = "0xD2A600", Offset = "0xD29600", VA = "0x180D2A600")]
|
|
internal static Encoding GetEncodingFromProvider(string encodingName)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
// Token: 0x04000973 RID: 2419
|
|
[Token(Token = "0x4000973")]
|
|
private static object s_InternalSyncObject;
|
|
|
|
// Token: 0x04000974 RID: 2420
|
|
[Token(Token = "0x4000974")]
|
|
private static EncodingProvider[] s_providers;
|
|
}
|
|
}
|