Duplicated using directives in multiple files

前端 未结 2 1958
深忆病人
深忆病人 2020-12-20 23:40

I have got 5 C# files that have 20 using directives in common. I want to get rid of this code duplication, especially because these 20 using directives belong logically toge

2条回答
  •  再見小時候
    2020-12-21 00:38

    Simple answer. If your code files are using 20 common using statements, they should not be separated into 20 statements. Also, I wouldn't worry that much over that kind of code duplication. It's not hitting your runtime performance in any way, so it's not really related to DRY paradigm.

提交回复
热议问题