Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CodeAnalysis.ParameterWrapper
CodeAnalysis.ParameterWrapper

CodeAnalysis.ParameterWrapper

Andrey Chechel

|
122 installs
| (0) | Free
This extension organizes ctor/method/delegate parameters, so every parameter is declared on its own line.
Download

ParameterWrapper

NuGet Status

This analyzer helps to organize method/constructor/delegate parameters nicely in your C# program. You'll find it extremely helpful in projects of a certain size with DI containers configured, long type names and/or methods with many parameters declared.

Installation

The analyzer can be installed:

  • globally using the Visual Studio 2019 Extension (link)
  • individually (per-project) using the NuGet package (link)

Example

Consider the following method declarations:

class Test
{   
    public void Foo(int a)
    {
    }
    
    public void Foo(int a, int b)
    {
    }
    
    public void Foo(int a, int b, int c)
    {
    }
}

Below is formatting the analyzer will suggest:

class Test
{   
    public void Foo(int a)
    {
    }
    
    public void Foo
    (
        int a,
        int b
    )
    {
    }
    
    public void Foo
    (
        int a,
        int b,
        int c
    )
    {
    }
}

Demo

ParameterWrapper

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft