views:

33

answers:

0

I like the named arguments feature of C# 4.0, I noticed that in some circumstances it greatly improves the readability of my code. Is there a refactoring extension to VS, which would convert a normal method call to a call with explicit argument names? Like this:

Before:

cmd.Parameters.AddWithValue("Foo", "Bar");

After:

cmd.Parameters.AddWithValue(parameterName: "Foo", value: "Bar");