Class CosmosEncodingProvider
Used to provide an System.Text.Encoder by using its name or codepage.
Inheritance
System.Object
System.Text.EncodingProvider
CosmosEncodingProvider
Inherited Members
System.Text.EncodingProvider.GetEncoding(System.Int32, System.Text.EncoderFallback, System.Text.DecoderFallback)
System.Text.EncodingProvider.GetEncoding(System.String, System.Text.EncoderFallback, System.Text.DecoderFallback)
System.Text.EncodingProvider.GetEncodings()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Cosmos.System.ExtendedASCII
Assembly: Cosmos.System2.dll
Syntax
public class CosmosEncodingProvider : EncodingProvider
Remarks
See also: System.Text.EncodingProvider.
Properties
| Improve this Doc View SourceInstance
Gets the main CosmosEncodingProvider instance. Returns an System.Text.EncodingProvider.
Declaration
public static EncodingProvider Instance { get; }
Property Value
Type | Description |
---|---|
System.Text.EncodingProvider |
Methods
| Improve this Doc View SourceGetEncoding(Int32)
Gets an encoding by its codepage.
Declaration
public override Encoding GetEncoding(int codepage)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | codepage | The codepage. |
Returns
Type | Description |
---|---|
System.Text.Encoding |
Overrides
System.Text.EncodingProvider.GetEncoding(System.Int32)
|
Improve this Doc
View Source
GetEncoding(String)
Gets an encoding by using its name.
Declaration
public override Encoding GetEncoding(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the target encoding. |
Returns
Type | Description |
---|---|
System.Text.Encoding |
Overrides
System.Text.EncodingProvider.GetEncoding(System.String)