开发者

namespaces in custom libraries best practices

Just wondering what the pros and cons between the two following two examples:

using MyLib;

namespace System.IO
{
    public class IoService : IIoService
    {
    ...

and

using System.IO;
using MyLib;

namespace MyLib.IO
{
    开发者_运维知识库public class IoService : IIoService
    {
    ...


Don't add stuff to library namespaces that aren't yours.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜