Snippet: StreamWriter Variable

property value
IDE VS Code
Language C#
Title StreamWriter Variable
Shortcut u_smwr
Description StreamWriter variable declaration.

Placeholders

Identifier Tooltip Default Value
_encoding File encoding Encoding.UTF8
identifier Identifier name sw
parameters Constructor parameters path

Code

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