DekGenius.com
[ Team LiB ] Previous Section Next Section

UTF8EncodingCF 1.0, ECMA 1.0, serializable

System.Text (mscorlib.dll)class

This class encodes Unicode characters as UTF-8, 8-bit characters. The overloaded constructor allows zero, one, or two boolean parameters. The first argument indicates whether the encoder should both emit the UTF-8 byte order mark code and recognize it. The second boolean argument specifies whether to throw an exception when invalid bytes are encountered.

public class UTF8Encoding : Encoding {
// Public Constructors
   public UTF8Encoding( );
   public UTF8Encoding(bool encoderShouldEmitUTF8Identifier);
   public UTF8Encoding(bool encoderShouldEmitUTF8Identifier, bool throwOnInvalidBytes);
// Public Instance Methods
   public override bool Equals(object value);        
// overrides Encoding
   public override int GetByteCount(char[ ] chars, int index, int count)
// overrides Encoding
   public override int GetByteCount(string chars);   
// overrides Encoding
   public override byte[ ] GetBytes(string s);        
// overrides Encoding
   public override int GetBytes(char[ ] chars, int charIndex, int charCount, byte[ ] bytes, 
        int byteIndex)
// overrides Encoding
   public override int GetBytes(string s, int charIndex, int charCount, byte[ ] bytes, 
        int byteIndex)
// overrides Encoding
   public override int GetCharCount(byte[ ] bytes, int index,  int count)
// overrides Encoding
   public override int GetChars(byte[ ] bytes, int byteIndex, int byteCount, char[ ] chars, 
        int charIndex)
// overrides Encoding
   public override Decoder GetDecoder( ); 
// overrides Encoding
   public override Encoder GetEncoder( ); 
// overrides Encoding
   public override int GetHashCode( );    
// overrides Encoding
   public override int GetMaxByteCount(int charCount);       
// overrides Encoding
   public override int GetMaxCharCount(int byteCount);       
// overrides Encoding
   public override byte[ ] GetPreamble( ); 
// overrides Encoding
}

Hierarchy

System.Object Encoding UTF8Encoding

    [ Team LiB ] Previous Section Next Section