What does the dispose method do with the connection object?



What does the dispose method do with the connection object?..

Answer / Dinkar Rao

"The Dispose method in C# is used to free up resources such as memory and handles that are associated with an object. In the context of a database connection, it closes the connection, frees the connection object from memory, and releases any other allocated resources."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What does static mean in c sharp?

1 Answers  


Can an abstract class inherit from another abstract class c#?

1 Answers  


What are the generation of Garbage Collection in C# .NET ?

1 Answers   MCN Solutions,


How does array sort work?

1 Answers  


What is event and delegates in c#?

1 Answers  


Is a games console a computer?

1 Answers  


Why is it a bad idea to throw your own exceptions?

4 Answers  


Are objects passed by reference in c#?

1 Answers  


Explain the features of an abstract class in net.

1 Answers  


Why is it called c sharp?

1 Answers  


How big is a 64 bit integer?

1 Answers  


Why we use get set in c#?

1 Answers  


Categories