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
}
}