Using Statement usage in C#

Answers were Sorted based on User's Feedback



Using Statement usage in C#..

Answer / 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

Using Statement usage in C#..

Answer / om shivaya namaha

Using statement is used to import the namespaces in to the
page by reading the namespace classname it will search the
class in DotNet Farame work class library and that
perticaular class is imported in to the page

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More ASP.NET Interview Questions

Is it possible for me to change my aspx file extension to some other name?

0 Answers  


What is the concept of view state in asp.net?

0 Answers  


Does google crawl redirects?

0 Answers  


Hi All, Im an MCA holder with 3+ years of experience in asp.net. Now i want to move to some good government job. I have no idea about different categories of exams held & which one can be applicable for my education background. I have done B.A with MCA. Please help me out with your valuable suggestions. I would be very grateful. Thanks Anuj

0 Answers   Accenture,


What is the difference between application object and session object?

4 Answers   IBS,






What threading model used in asp and asp.net?

0 Answers  


What is reflection and disadvantages of reflection?

6 Answers   Microsoft,


How do we implement bundling in MVC?

0 Answers   B-Ways TecnoSoft,


What are session state modes? List some of the important session state modes of asp.net.

0 Answers  


1.how to encrpt query string in asp.net? 2.there are 10000 records then i wnat display 5000 records one gridview and 5000 records another grid view what is the process?

0 Answers   Marlabs,


What methods are fired during the page load?

1 Answers  


Where is session data stored in asp net?

0 Answers  


Categories