G
Guest
Realistically, how efficient is the using() statement (not the directive)? If I do this
using (SolidBrush test = new SolidBrush(Color.Black))
(...
is it more efficient (performance and memory wise) than this
Solidbrush test = new SolidBrush(Color.Black)
test.Dispose()
test = null
Does it not matter? Is using() SLOWER? I'm really concerned about the difference because I have an app that can be drawing 50 times+ a second
Thanks
Yaron
using (SolidBrush test = new SolidBrush(Color.Black))
(...
is it more efficient (performance and memory wise) than this
Solidbrush test = new SolidBrush(Color.Black)
test.Dispose()
test = null
Does it not matter? Is using() SLOWER? I'm really concerned about the difference because I have an app that can be drawing 50 times+ a second
Thanks
Yaron