DEV Community

[Comment from a deleted post]
Collapse
 
patricktingen profile image
Patrick Tingen

If you use the using statement in a method in such a way that the variable is disposed at the end of the method, is there any advantage in using "using" instead of a normal variable definition?