foo
foo

Reputation: 1495

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
    {
    ...

Upvotes: 0

Views: 97

Answers (1)

Yochai Timmer
Yochai Timmer

Reputation: 49271

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

Upvotes: 4

Related Questions