Relative Content

Tag Archive for c#inheritanceconstructorrecord

C# Initialize inherited record form base record

I have a base record type and an inherited record type which adds a few fields.
At runtime I have an instance of the base record type and want to convert it to an instance of the inherited record type, without retyping all the parameters.