Why do we use the “using” statement?
Answer / Akriti Porwal
The 'using' statement in C# is used for resource management, specifically to ensure that disposable objects are properly disposed of and released as soon as they are no longer needed. It automatically calls the Dispose() method on objects implementing IDisposable interface, which helps to avoid memory leaks.
| Is This Answer Correct ? | 0 Yes | 0 No |
How is threading done in .net?
What is use of ContextUtil class?
1 mor thing guyz....can i go for C# directly without C++ /JAVA knowledge for dot net ..???
what is the difference between class and structures?
Explain the procedure to add assemly to gac to make it shared one?
Class for getting the info that is on clipboard of our system in a windows App?
What is Finalizer in .NET define Dispose and Finalize ?
How Can Registry Editor in .NET?
What security mechanisms to enforce for Authenticating and authorizing the users?
What is iis? Have you used it?
Explain what is the difference between encrypting a password and applying a hashing?
Explain what is the difference between response.redirect & server.transfer?