dotnet/roslyn

Refactoring Suggestion: Change Signature for Type Parameters

Open

#63.644 geöffnet am 29. Aug. 2022

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)C# (4.257 Forks)batch import
Area-IDEhelp wanted

Repository-Metriken

Stars
 (20.414 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6T 17h) (256 gemergte PRs in 30 T)

Beschreibung

Brief description: Today, you can re-order method parameters with a nice dialog like so: image

But there is no method for re-ordering type parameters. All

Additional Information: If I have code like this:

public class Foo<T1, T3, T4, T2> { }

and want to refactor it to:

public class Foo<T1, T2, T3, T4> { }

Today, I have to touch every single place they are used by hand. This basically makes the refactoring impossible.

Contributor Guide