Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // GarbageCollection_CLI.h
- #pragma once
- using namespace System;
- namespace GarbageCollection_CLI {
- public ref class ObjectHolder
- {
- private:
- Object^ mSomeObject;
- public:
- ObjectHolder(Object^ someObject)
- {
- mSomeObject = someObject;
- }
- property bool ObjectExists
- {
- bool get()
- {
- return mSomeObject != nullptr;
- }
- }
- ~ObjectHolder()
- {
- mSomeObject = nullptr;
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement