Answer Posted / mayur teli
We can also use Using statement
when we use it, there is no need to explicitly dispose the object. Using statement take care of it.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Why do we need private constructor in c#?
What is the example of predicate?
What is cshtml extension?
What is private in c#?
What are object pooling and connection pooling and difference between them?
Will the following code compile?
What is the difference between var and dynamic types in c# 4.0?
How to find the current application file path while runtime?
Explain manifest & metadata in c#.
Define a strong name in .net?
What do you understand by 'access specifiers' in C#?
Why do we need indexers in c#?
Why is it important to override gethashcode when equals method is overridden?
Is c# difficult to learn?
Is c# and .net same?