using (R r1 = new R()) { r1.F(); }is precisely equivalent to

R r1 = new R(); try { r1.F(); } finally { if (r1 != null) ((IDisposable)r1).Dispose(); }Paragraph 71 A resource-acquisition may acquire multiple resources of a given type. 2 This is equivalent to nested using statements. 3 A using statement of the form

using (R r1 = new R(), r2 = new R()) { r1.F(); r2.F(); }is precisely equivalent to:

using (R r1 = new R()) using (R r2 = new R()) { r1.F(); r2.F(); }which is, by expansion, precisely equivalent to:

R r1 = new R(); try { R r2 = new R(); try { r1.F(); r2.F(); } finally { if (r2 != null) ((IDisposable)r2).Dispose(); } } finally { if (r1 != null) ((IDisposable)r1).Dispose(); } <table_line></table_line>

| |

Jagger Software Ltd | |

Company # 4070126 | |

VAT # 762 5213 42 |