Snippet: StreamWriter Variable

property value
IDE Visual Studio
Language C#
Title StreamWriter Variable
Shortcut u
Description StreamWriter variable declaration.
Snippet Types Expansion
Namespaces System.IO
System.Text

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_encoding File encoding Encoding.UTF8 yes
identifier Identifier name sw yes
parameters Constructor parameters path yes

Code

using (var sw = new StreamWriter(path, Encoding.UTF8)) {
	
}