using System;
namespace System.Text
{
/// Provides basic information about an encoding.
/// 2
// Token: 0x020005F4 RID: 1524
[Serializable]
public sealed class EncodingInfo
{
// Token: 0x06003794 RID: 14228 RVA: 0x000BE730 File Offset: 0x000BC930
internal EncodingInfo(int cp)
{
this.codepage = cp;
}
/// Gets the code page identifier of the encoding.
/// The code page identifier of the encoding.
/// 2
// Token: 0x17000AEC RID: 2796
// (get) Token: 0x06003795 RID: 14229 RVA: 0x000BE740 File Offset: 0x000BC940
public int CodePage
{
get
{
return this.codepage;
}
}
/// Gets the human-readable description of the encoding.
/// The human-readable description of the encoding.
/// 2
// Token: 0x17000AED RID: 2797
// (get) Token: 0x06003796 RID: 14230 RVA: 0x000BE748 File Offset: 0x000BC948
[MonoTODO]
public string DisplayName
{
get
{
return this.Name;
}
}
/// Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the encoding.
/// The IANA name for the encoding. For more information about the IANA, see www.iana.org.
/// 2
// Token: 0x17000AEE RID: 2798
// (get) Token: 0x06003797 RID: 14231 RVA: 0x000BE750 File Offset: 0x000BC950
public string Name
{
get
{
if (this.encoding == null)
{
this.encoding = this.GetEncoding();
}
return this.encoding.WebName;
}
}
/// Gets a value indicating whether the specified object is equal to the current object.
/// true if is a object and is equal to the current object; otherwise, false.
/// An object to compare to the current object.
/// 1
// Token: 0x06003798 RID: 14232 RVA: 0x000BE780 File Offset: 0x000BC980
public override bool Equals(object value)
{
EncodingInfo encodingInfo = value as EncodingInfo;
return encodingInfo != null && encodingInfo.codepage == this.codepage;
}
/// Returns the hash code for the current object.
/// A 32-bit signed integer hash code.
/// 1
// Token: 0x06003799 RID: 14233 RVA: 0x000BE7AC File Offset: 0x000BC9AC
public override int GetHashCode()
{
return this.codepage;
}
/// Returns a object that corresponds to the current object.
/// A object that corresponds to the current object.
/// 1
// Token: 0x0600379A RID: 14234 RVA: 0x000BE7B4 File Offset: 0x000BC9B4
public Encoding GetEncoding()
{
return Encoding.GetEncoding(this.codepage);
}
// Token: 0x040016A3 RID: 5795
private readonly int codepage;
// Token: 0x040016A4 RID: 5796
private Encoding encoding;
}
}