Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Text.​EncodingInfo

Assembly: System.Runtime

Inheritance: object → EncodingInfo

Provides basic information about an encoding.

Properties

public int
CodePage
Gets the code page identifier of the encoding.
public string
DisplayName
Gets the human-readable description of the encoding.
public string
Name
Gets the name registered with the Internet Assigned Numbers Authority (IANA) for the encoding.

Methods

public bool
Equals​(object value)
value An object to compare to the current <see cref="T:System.Text.EncodingInfo" /> object.
Returns <see langword="true" /> if <paramref name="value" /> is a <see cref="T:System.Text.EncodingInfo" /> object and is equal to the current <see cref="T:System.Text.EncodingInfo" /> object; otherwise, <see langword="false" /> .
Gets a value indicating whether the specified object is equal to the current <see cref="T:System.Text.EncodingInfo" /> object.
public Encoding
GetEncoding​()
Returns A <see cref="T:System.Text.Encoding" /> object that corresponds to the current <see cref="T:System.Text.EncodingInfo" /> object.
Returns a <see cref="T:System.Text.Encoding" /> object that corresponds to the current <see cref="T:System.Text.EncodingInfo" /> object.
public int
GetHashCode​()
Returns A 32-bit signed integer hash code.
Returns the hash code for the current <see cref="T:System.Text.EncodingInfo" /> object.
protected void
Finalize​()
Inherited from object
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
public Type
GetType​()
Inherited from object
Returns The exact runtime type of the current instance.
Gets the <see cref="T:System.Type" /> of the current instance.
protected object
MemberwiseClone​()
Inherited from object
Returns A shallow copy of the current <see cref="T:System.Object" /> .
Creates a shallow copy of the current <see cref="T:System.Object" /> .
public string
ToString​()
Inherited from object
Returns A string that represents the current object.
Returns a string that represents the current object.