I\'m working in c# with several workspaces that have one specific class which his always the same in each workspace.
I would like to be able have a copy of this class to be
public static T DeepClone(T obj)
{
using (var ms = new MemoryStream())
{
var formatter = new BinaryFormatter();
formatter.Serialize(ms, obj);
ms.Position = 0;
return (T) formatter.Deserialize(ms);
}
}