Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Using Statement usage in C#

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


Please Help Members By Posting Answers For Below Questions

Explain the asp.net mvc request life cycle? : asp.net mvc

937


What do you mean by role-based security?

939


In which situation can you not use a viewstate?

908


What is difference between rest and soap?

1044


Describe the difference between inline and code behind - which is best in a?

1081


How do you secure your connection string information?

934


What does the hotspot class in .net do?

952


Define dll hell?

1039


Explain the difference between array and linkedlist?

940


What threading model used in asp and asp.net?

1010


What does postback mean?

958


What is state management technique?

947


What is a page life cycle? What are the events in a page life cycle?

844


14. What are your Future Plans for Swatz Oils GROUP U.K?

2142


What is session id in web application?

1033