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

How can I create image pieces/sub image?

949


Do loops c#?

897


What can be done with c#?

831


List down the commonly used types of exceptions in .net

892


What are the benefits of using generics in c#?

912


What is parallel foreach in c#?

972


Can we make a class private in c#?

941


What is form feed in c#?

958


What is the difference between static and private constructor?

990


What does the dispose method do with the connection object?

972


What is the difference between protected and private?

928


What is the use of ienumerable?

864


What are the three types of operators?

991


How do I develop c# apps?

913


Why do we need serialization?

908