When I refactor a class with a regular constructor to a primary constructor I'd like Visual Studio to capitalize the name of the parameters.
For example:
public class Desk
{
private Guid Material;
public Desk(Guid material)
{
Material = material;
}
}
would become
public class Desk(Guid Material)
{
// ....
}
The reason being PascalCase variables are outside the scope of any method. It doesn't matter to the method if the class chooses to make that public or not.
How can I get VS to suggest this sort of refactor when it suggests a primary constructor.
public class Desk(Guid material) { private Guid Material { get; } = material; }