C# ASCIIEncoding ASCIIEncoding
Description
ASCIIEncoding ASCIIEncoding
Initializes a new instance
of the ASCIIEncoding class.
Syntax
ASCIIEncoding.ASCIIEncoding
has the following syntax.
public ASCIIEncoding()
Example
using System;//from ww w .ja va2s .c o m
using System.Text;
class ASCIIEncodingExample
{
public static void Main()
{
ASCIIEncoding ascii = new ASCIIEncoding();
String encodingName = ascii.EncodingName;
Console.WriteLine("Encoding name: " + encodingName);
}
}
The code above generates the following result.