I\'m quite unsure about using goto inside an using block.
goto
using
For example:
using(stream s = new stream(\"blah blah blah\")); {
Yes.
But why not try it yourself?
void Main() { using(new Test()) { goto myLabel; } myLabel: "End".Dump(); } class Test:IDisposable { public void Dispose() { "Disposed".Dump(); } }
Result:
Disposed End