C# conditional using block statement

后端 未结 10 1913
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-02 07:25

I have the follow code but it is awkward. How could I better structure it? Do I have to make my consuming class implement IDisposable and conditionally construct the network acc

10条回答
  •  感动是毒
    2021-02-02 07:52

    I guess that is really a matter of cosmetics if the code is as simple as that.

    I can envision how it could look the other way, and my vote will be for this version you have now.

提交回复
热议问题