C# StringWriter Encoding

Description

StringWriter Encoding Gets the Encoding in which the output is written.

Syntax

StringWriter.Encoding has the following syntax.


public override Encoding Encoding { get; }

Example


using System;/*from  w  w  w  .  ja va2  s.  c  o m*/
using System.IO;
using System.Text;

class StrWriter
{
    static void Main()
    {
        StringWriter strWriter = new StringWriter();
        Console.WriteLine(strWriter.Encoding);
    }
}




















Home »
  C# Tutorial »
    System.IO »




BinaryReader
BinaryWriter
Directory
DirectoryInfo
DriveInfo
File
FileInfo
FileStream
MemoryStream
Path
StreamReader
StreamWriter
StringReader
StringWriter