-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Open
Labels
Area-IDEFeature - TuplesTuplesTupleshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Description
class Program
{
private static readonly (string Factory, string EvaluationRuleName) Foo;
static void Main(string[] args)
{
var foo = Foo; // Deconstruct tuple here
}
}Expected:
class Program
{
private static readonly (string Factory, string EvaluationRuleName) Foo;
static void Main(string[] args)
{
var (factory, evaluationRuleName) = Foo;
}
}Actual:
class Program
{
private static readonly (string Factory, string EvaluationRuleName) Foo;
static void Main(string[] args)
{
var (Factory, EvaluationRuleName) = Foo;
}
}Because tuple names appear as public fields when you access them via the tuple itself, it's common practice to PascalCase them in a declaration. However, when they are deconstructed into variables - you want them them to be camelCase to match the naming style for variables.
Either add an option here that I can switch or change the behavior. As it stands, I can't use this code fix.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Area-IDEFeature - TuplesTuplesTupleshelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on itThe issue is "up for grabs" - add a comment if you are interested in working on it
Type
Projects
Status
InQueue