[Tip]dispose resource in C++/CLI using a C# class

调用Dispose方法

As known, for C#, it will call IDispose::dispose() of a class to release resources, while for C++/CLi, it needs call "delete obj" to the same work. A fact is that: no matter a dotNet class is written in which language on dotNet platform (here, either c# or C++/CLI), it can release its resource in that calling language's native way@!

May require more reading here...


原文地址:https://www.cnblogs.com/taoxu0903/p/1839544.html