2
I know that the using
is used to release (give a dispose
) resources. My doubt is in the following case:
public void FuncNaoFazNada()
{
using(var acd = new AlgumaClasseIDisposable())
{
return;
}
}
In this case, will the resources used by Acd be dispensed with? Or will the flow break keep the resources allocated?
Related (duplicate?) to What is the usefulness of using?
– ramaral