Answer Posted / nipun
The using statement allows the programmer to specify when objects that use resources should release them. The object provided to the using statement must implement the IDisposable interface. This interface provides the Dispose method, which should release the object's resources.
e.g.
using (Font font1 = new Font("Arial", 10.0f))
{
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Difference between DataGid and Girdview? Difference b/w .Net 2.0, 3.0 and 3.5 ? Diff b/w dispose & Finialize Methods?
How can we prepairing Interview
Why select Web API?
What is mvc in asp.net tutorial? : Asp.Net MVC
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What is webresource axd?
What is the difference between dispose() and finalize()?
What is csrf attack in asp.net?
Is it possible to change the index of primary key on table?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What is the use of global.asax file?
What is the difference between runtime version and version?
Why does my asp.net file have multiple tag with runat=server?
What is the difference between the asp and asp.net?
What are validators and list some validators of asp.net?