This is a discussion on C# question that should be simple. - DOTNET ; Friends, How can I make a shallow copy of any object? I'm trying to make a copy of a managed C# DX9 Directplay NetworkPacket but the class is sealed so I can't derive from it and use MemberwiseClone. I'm sure ...
Friends,
How can I make a shallow copy of any object? I'm trying to make a copy of a managed C# DX9 Directplay NetworkPacket but the class is sealed so I can't derive from it and use MemberwiseClone. I'm sure there's a simple (and probably obvious) solution but it's eluding me.
Thank you for sharing your experience.