C#C
C#4y ago
Elio

Using instruction

Hi, i would like to know when we are using the instruction "using like this :
using (var context = new BloggingContext())
{
    var blogs = context.Blogs.ToList();
}


does it automatically dispose all the variable inside "blogs" and "context" ?
Was this page helpful?