dotnet / dotnet/fsharp

quickfix/refactor idea: convert Record to class with properties

Open
#2,836 1 comment 0 reactions 0 assignees View on GitHub
Area-LangService-CodeRefactorings Feature Request
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 11h
Merged PRs (30d)
131

Description

Sometimes, you start with a Record type and want to move to class type afterwards (e.g. when introducing mutable members, or making the api more C# friendly).

A record can be substituted with a class that has matching property names. Of course all the sites where Record was instantiated needs to be fixed as well.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.