Snippet: local variable declaration with explicit cast operator

property value
IDE Visual Studio
Language C#
Title local variable declaration with explicit cast operator
Shortcut vt
Description local variable declaration with explicit cast operator
Snippet Types Expansion

Placeholders

Identifier Tooltip Default Value Editable Function Type Name
_type Type to cast to T yes
expression Expression to cast expression yes
identifier Identifier name x yes

Code

var x = (T)expression;