Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

C++/CX - how to declare an interface that derived from Platform::IDisposable/IClosable

$
0
0

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!


Viewing all articles
Browse latest Browse all 15302


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>