We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

PdfLoadedDocument.Close()

Will this:

using (var doc = new PdfLoadedDocument(pdfFile))
{
}


be equivalent to:

var doc = new PdfLoadedDocument(pdfFile));
doc.Close();



1 Reply

BN Bhuvaneswari Nagarajan Syncfusion Team July 21, 2016 12:36 PM UTC

Hi Jacobus, 
Thanks for using Syncfusion products, 
Yes, both are equivalent. Usually we will use “using” for disposing the objects.  
  
Regards, 
Bhuvaneswari N 


Loader.
Live Chat Icon For mobile
Up arrow icon