Hi,
In C# not Store we can use following
public static T Make<T>(T objectToCopy) where T : class
{
using (var ms = new MemoryStream())
{
var bf = new BinaryFormatter();
bf.Serialize(ms, objectToCopy);
ms.Position = 0;
return (T)bf.Deserialize(ms);
}
}
Where is the BinaryFormatter();>?