Placing custom code in a System namespace

前端 未结 3 1986
南笙
南笙 2020-12-20 16:45

Are there any best-practices that state custom code shouldn\'t be placed in a System namespace? Should System and its children be reserved for Micr

3条回答
  •  失恋的感觉
    2020-12-20 17:37

    If you place a new class in System.InteropServices, every file that has a using System.InteropServices; clause is forced to have your class in scope, which may confuse the programmer. Since the programmer cannot defend oneself against this, I'd consider this bad practise.

提交回复
热议问题