What is the difference between these statements
obj=null and obj.dispose()
Answer Posted / pushparaj pentakota
obj=null is remove the reference to object only but that
object will be existed but obj.dispose() is clear the
reference and as well as clear the object also from the
memory.so obj.dispose() is best to use but in some cases not.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What does out mean in c#?
How do you comment out code in c#?
Give 2 scenarios where static constructors can be used?
What is xslt in c#?
What does xpath return?
What is the use of expression tree in c#?
Can class inherit from struct c#?
What is the use of the dispose method in C# ?
Is there hashmap in c#?
What are access modifiers used for?
What is data reader in c#?
What is or operator in c#?
Who introduced c#?
How do I create a delegate/multicastdelegate?
Can a static class have a constructor c#?