Snippet: local variable declaration with explicit cast operator

property value
IDE VS Code
Language C#
Title local variable declaration with explicit cast operator
Shortcut vt
Description local variable declaration with explicit cast operator

Placeholders

Identifier Tooltip Default Value
_type Type to cast to T
expression Expression to cast expression
identifier Identifier name x

Code

var x = (T)expression;