KEMBAR78
Extract array of const to static readonly field · Issue #33794 · dotnet/runtime · GitHub
Skip to content

Extract array of const to static readonly field #33794

@terrajobst

Description

@terrajobst

Arrays of const passed to known methods on types like System.String (e.g. IndexOfAny(new[] { ',', '.' })) can be lifted out to static readonly fields.

Category: Performance

Metadata

Metadata

Assignees

Labels

api-approvedAPI was approved in API review, it can be implementedarea-System.Runtimecode-analyzerMarks an issue that suggests a Roslyn analyzercode-fixerMarks an issue that suggests a Roslyn code fixerin-prThere is an active PR which will close this issue when it is merged

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions