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

What is the purpose of url encoding?

1025


Do you know about caching with the datasource controls?

936


What is inheritance and an how it be used, example with an example?

1111


Differentiate the session object and application object?

977


What is the use of web.config and machine.config files?

1203


Which is faster viewdata or viewbag?

1049


How can you enable impersonation in the web.config file?

1193


What is cookies cache and session?

1007


How do sessions work?

982


Why do we need master page in asp.net?

993


Can you nest updatepanel within each other?

1040


How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.

1956


Explain the difference between asp.net mvc and asp.net webforms? : asp.net mvc

1082


Tell me how asp.net mvc differs from asp.net web forms? : asp.net mvc

1223


What is the difference between union and join?

1261