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
How can I create image pieces/sub image?
Do loops c#?
What can be done with c#?
List down the commonly used types of exceptions in .net
What are the benefits of using generics in c#?
What is parallel foreach in c#?
Can we make a class private in c#?
What is form feed in c#?
What is the difference between static and private constructor?
What does the dispose method do with the connection object?
What is the difference between protected and private?
What is the use of ienumerable?
What are the three types of operators?
How do I develop c# apps?
Why do we need serialization?