我正在调整此来源的编码风格指南:
http://www.csharpfriends.com/articles/getarticle.aspx?articleid=336
http://www.csharpfriends.com/articles/getarticle.aspx?articleid=336
在“5.2初始化”下,它建议如下:
If you initialize a dialog try to use
the using statement:using (OpenFileDialog openFileDialog =
new OpenFileDialog()) { }
这种风格选择的原因是什么?