csharp_style_namespace_declarations
Convert block namespaces to file-scoped. IDE0161. Applied without a compilation.
| Value | Notes |
|---|---|
block_scoped |
|
file_scoped |
Default: (as written)
csharp_style_namespace_declarations = block_scoped
using System;
namespace N
{
public class Widget
{
public void Run() { }
}
}
using System;
namespace N
{
public class Widget
{
public void Run() { }
}
}
csharp_style_namespace_declarations = file_scoped
using System;
namespace N
{
public class Widget
{
public void Run() { }
}
}
using System;
namespace N;
public class Widget
{
public void Run() { }
}