/// <summary> /// Get a deep copy of the object (if serializable). /// </summary> public static T Copy <T>(this T obj) where T : new() => CopyUtil.DeepClone(obj);