Quick introduce and initialize private fields from constructor parameters.
With Visual studio Quick fix (Ctrl + .) now you can create private field according to constructor parameter and initialize value by it. If constructor parameter is reference type, than check if paramter is not null, if yes then throw argument null exception. Now support CSharp and Visual Basic.NET
GitHub repository https://github.com/Burgyn/RoslynRefactoring |