The Encoding class, in addition to the base class of all encoders, provides static property accessors for the named subclasses.
Encoding.ASCII returns an instance of ASCIIEncoding , which in turn subclasses Encoding and passes the code page 0x4e9f ( US-ASCII ) to the base constructor.
source share