What would be the best way to write a generic copy constructor function for my c# classes? They all inherit from an abstract base class so I could use reflection to map the prop
You may reference valueinjecter and fasterflect nuget packages and use:
public class Myclass() { private string _property; public MyClass(MyClass obj) { this.InjectFrom(obj.DeepClone()); } }