How to dispose object?

I have created a document object as follows

Aspose.Words.Document doc = new Aspose.Words.Document("c:\\test.doc");

I need to dispose this doc object after using. For this I did this,

doc = null;

Is this enough? Or is there any other Aspose specific garbage collection function I should call to clear the object?
Thank you.

Hi

Thanks for your inquiry. You do not need to do anything to dispose a Document object. It will be garbage collected when it is not used.
Best regards.