Best practices for creating libraries that use .NET namespaces

后端 未结 6 963
失恋的感觉
失恋的感觉 2021-02-04 11:59

Is it bad practice to write a library that defines an interface dependent on another library?

I know tight coupling is bad, but does this still apply when using .NET cla

6条回答
  •  深忆病人
    2021-02-04 12:44

    You shouldn't worry about using anything in the .NET core library. You wouldn't get very far in writing a DLL without it. The only place possibly to be careful around it is the System.Web namespace as I believe .NET 4 has a client profile installer which basically means if you use this installer it will only install things expected to be used on a client. I personally think it is a bad idea on Microsoft's Part as it just adds un-necessary complication for saving a small amount of download time.

提交回复
热议问题