Skip to content
| Marketplace
Sign in
Visual Studio>Tools>For the record
For the record

For the record

Preview

Jeppe Roi Kristensen

|
46 installs
| (0) | Free
This is a code refactoring extension for converting a record to a class.
Download

For-the-record

A code refactoring tool for Visual Studio to enable converting a record to a class

This is a tool for lazy people like myself. It allows you to convert a record like this

public record SomeRecord (int Id, string Name, int Number) { }

And the code refactoring will suggest either to Convert to class

public class SomeRecord
{
    public int Id {get;set;}
    
    public string Name {get;set;}
    
    public int Number {get;set;}
    
}

Or Convert to class (init properties from constructor)

public class SomeRecord
{
    public int Id {get;set;}
    
    public string Name {get;set;}
    
    public int Number {get;set;}
    
    public SomeRecord(int id, string name, int number)
    {
      this.Id = id;
      this.Name = name;
      this.Number = number
    }

}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft