Best practice for nested using statements?
I have a code block as follows and I'm using 3 nested using blocks. I found that using try finally blocks I can avoid this but if there are more than two using statements, what is the best approach? private FileStream fileStream = null; private Document document = null; private PdfWriter pdfWriter = null; using (fileStream = new FileStream("ABC.pdf", FileMode.Create)) { using (document = new Document(PageSize.A4, marginLeft, marginRight, marginTop, marginBottom)) { using (pdfWriter = PdfWriter.GetInstance(document, fileStream)) { document.AddAuthor(metaInformation["author"]); document