Snippet: new variable (with initializer)

property value
IDE VS Code
Language C#
Title new variable (with initializer)
Shortcut vnx
Description variable declaration with new object creation (with initializer)

Placeholders

Identifier Tooltip Default Value
_arguments List of arguments arguments
_value x
identifier Identifier name x
type Type name object

Code

var x = new object(arguments) { x };