Paste your C# class below and click the button to convert it to a C# record.
This tool supports typical public get/set properties as well as property summaries. It will safely ignore attributes, a constructor, and any other code that is not a public get/set property.
Example Input
This shows the basics of what can be entered - yours will most likely look a lot cleaner but it demonstrates the basics.
public class Car
{
public Car(int id, string name, string color, bool isManual)
{
Id = id;
Name = name;
Color = color;
IsManual = isManual;
}
/// <summary>
/// The id of the car
/// </summary>
[Required]
public int Id { get; set; }
/// <summary>
/// The name given to the car
/// </summary>
public string Name { get; set; }
public string Color { get; set; }
[Required]
/// <summary>
/// Whether this car is a manual or not
/// </summary>
public bool IsManual { get; set; }
}