[Tip]dispose resource in C++/CLI using a C# class
2010-09-30 15:31
393 查看
调用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...
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...
相关文章推荐
- using class in c#(simple)
- [Tip: using namespace in C++/CLI]
- Basic Syntax Diff VS C# met a lot in using C++/CLI
- How to synchronize access to a shared resource in a multithreading environment by using Visual C#
- SQLite Practice Using C# in Windows
- Spring Boot - Error creating bean with name 'dataSource' defined in class path resource
- Understanding StopWatch Class In C#
- Unable to find a value for "字段名" in object of class java.lang.String using operator "."
- Static Class in C#
- Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xm
- Remoting in .NET Using C#
- Using resource files in SharePoint 2010
- using template in class
- Hello Word Outlook Add-In using C#
- Convert objects to JSON in C# using JavaScriptSerializer
- Using Settings in C# 在C#中使用APP.CONFIG配置文件
- Blob file download in Angular.js using $resource
- internal class in C#
- Error creating bean with name 'sqlSessionFactory' defined in class path resource
- Using resource bundle for validation messages in Spring