Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
regarding using statement
Ajai Ajai
May 5 2016 3:09 PM
301
Reply
I have just a stupid question in mind, but i need answer. if i am using "using" statement in c# then its automatically handle try, catch, and finally statement, but if we use "return" statement in try block then its automatically dispose or not before or after return.
Sample code is above
using(dbContext db = new dbContext())
{
return db.users.tolist();
}
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
how to hide the progress bar when 100% is completed
bluetooth group voice chat