C# StringWriter FormatProvider

Description

StringWriter FormatProvider Gets an object that controls formatting.

Syntax

StringWriter.FormatProvider has the following syntax.


public virtual IFormatProvider FormatProvider { get; }

Example


using System;//w w  w  .ja v  a 2 s . com
using System.IO;
using System.Text;

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

The code above generates the following result.





















Home »
  C# Tutorial »
    System.IO »




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