StreamWriter Constructor (Stream, Encoding)
Initializes a new instance of the StreamWriter class for the specified stream, using the specified encoding and the default buffer size.
Assembly: mscorlib (in mscorlib.dll)
When you compile a set of characters with a particular cultural setting and retrieve those same characters with a different cultural setting, the characters might not be interpretable, and could cause an exception to be thrown.
Silverlight for Windows PhoneIf you pass an invalid input path to a StreamWriter constructor, the constructor throws InvalidArgumentException instead of DirectoryNotFoundException.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.