When is using a good idea? : By reading this article i got a bit confused:

> https://www.dotnetperls.com/using

They demonstrated that calling using for 2 disposable objects, ended with more memory usage, while the method without usings, doing the same instructions, used lower memory.

Can you explain me why and when should i use the "using"?

I tought that dispose was a good idea to free memory, but it looks like I was wrong ^^

I didn't understand too, what's the difference between:

    using (MemoryStream ms = new MemoryStream())
    {
        //do things..
    }

and

    MemoryStream ms = new MemoryStream();
    //do things..
    ms.Dispose();