suuuuuuuper
suuuuuuuper
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); }
14 replies
CC#
Created by nathanAjacobs on 11/4/2024 in #help
Deep copying data from class instances
this sounds like a mapping function. Or are you look for something that knows nothing about your class?
14 replies