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...

What is the difference between these statements
obj=null and obj.dispose()

Answer Posted / dhinaharan

obj.dispose has to be used and not obj=null, bcoz JIT
compiler is optimizing compiler, and setting a local
variable or parameter to null is the same as not
referencing the variable at all.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the difference between Response.Write () and Response.Output.Write ().

1002


Why main method is static in c#?

1001


Explain About CLS?

1026


What is the meaning of extention?

1080


What is the wildcard character in sql?

1111


What is the concept of strong names?

1030


Why do we use 0?

975


Does c# have a 'throws' clause?

1092


What is a interface in c#?

1084


What is the use of 0 in c#?

1085


What is thread safe in c#?

943


What is difference between private and protected?

1041


How to handle exceptions that are raised in a component?

1147


What are constructors in c#?

1010


windows c# using datagridview in edit form sql server

4132