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 do namespaces work?

924


What is the difference between the debug class and trace class? Documentation looks the same.

1073


What is class sortedlist underneath?

907


What is difference between abstract class and interface in c#?

901


How do I create a single-file assembly?

950


Explain how to parse a datetime string?

887


Can you inherit multiple abstract classes in c#?

889


What is the correct way of declaring an xml namespace?

792


Which are access modifiers available in c#?

912


Which is executed if an exception has not occurred?

916


List the 5 different access modifiers in c#?

880


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

912


How many types of inheritance are there in c#?

870


Is c# scripting language?

856


How to exclude a property from xml serialization?

965