CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
idisposable.h
1
3#ifndef _IDisposable_h_
4#define _IDisposable_h_
5
6#include "system/object.h"
7
8namespace System
9{
10#ifdef CALL_DISPOSE
15 class ASPOSECPP_SHARED_CLASS IDisposable
16 {
17 RTTI_INFO(System::IDisposable, ::System::BaseTypesInfo<System::Object>)
18
19 public:
21 virtual void Dispose() = 0;
22 };
23
24#else
29 class ASPOSECPP_SHARED_CLASS IDisposable : virtual public System::Object
30 {
31 RTTI_INFO(System::IDisposable, ::System::BaseTypesInfo<System::Object>)
32
33 public:
34 // There no need to define an empty virtual dtor, virtual dtor for inheritance already defined in the Object class
36 virtual void Dispose() { }
37
38 };
39
40#endif
41}
42
43#endif
Defines method that releases resources owned by the current object. Objects of this class should only...
Definition: idisposable.h:30
virtual void Dispose()
Does nothing.
Definition: idisposable.h:36
Base class that enables using methods available for System.Object class in C#. All non-trivial classe...
Definition: object.h:62
Definition: db_command.h:9