In my case, we use a factory to create an object. Some code snippet as below:
public interface class ICloud
{
};
public ref class CloudFactory sealed:
{
static ICloud ^ createCloud();
};
In this way, ICloud object is not disposable. Is there any way to declare, ICloud interface derived from Platform::IDisposable? Thanks!