c# - Prevent from autoformatting after using statement -
i have code:
var = 2; i type using(...){} above declaration  i`m getting:
using(...) { }     var = 2; visual studio adds tab a declaration. want prevent this, how can achieve ?  
edit: added braces don`t want have a inside using.
that because using statement executes codes whitin scope variable whitin using exists. correct syntax using is:
using (var disposeme = new disposeme()) {     // here use disposeme object during lifetime     var = 2; } // here disposeme gets disposed. with regards, john
Comments
Post a Comment