CC#•Created by nathanAjacobs on 11/4/2024 in #help Deep copying data from class instances
This is my deep copy, would it work for you?
public static T DeepCopy<T>(this T obj)
{
var json = JsonSerializer.Serialize(obj);
return JsonSerializer.Deserialize<T>(json);
}