Calling C++/CLI delete on C# object
问题 I'm in the middle of converting some code from C++/CLI to C#. One of the objects has a destructor in the C++/CLI version. Some other C++/CLI code calls "delete" on this object after use. Which method do I need to implement in the C# version of this object so those "delete"s continue to function the same (IDisposable.Dispose, the finalizer, or something else that I'm missing)? 回答1: I would say the IDisposable interface is what you look for if you need deterministic disposal of resources. This