Hi,
Is it an accepted use of brackets if I do something like this inside a method?
I figured I could use this way to get rid off the SomethingHeavy object in stead of using .Dispose() and I wouldn't have a reference to it anymore.Code:string[] strs; { object SomethingHeavy = new HeavySomething(); strs = HeavyToString(SomethingHeavy); } //use strs
I haven't seen it in other people's C# code so I was just wondering if it would look akward to pro's like you all are ofcourse.
![]()




Reply With Quote