Using Statements vs Namespace path? C#

前端 未结 6 416
耶瑟儿~
耶瑟儿~ 2020-11-30 11:19

I recently stopped using using-statements and instead use the full namespace path of any .net object that I call.

Example:

using System;    

namespa         


        
6条回答
  •  情书的邮戳
    2020-11-30 11:39

    If you disassemble both of this pieces of code and look at IL code, you'll find that compiler always references all the types by it's full names. That is absolutely identical ways to operating types.

提交回复
热议问题