What is meant by connection.Dispose()
in C#?
Generally Dispose is called to free resources when you are finished using the component.
The Dispose method on a SqlClientConnection object will force the connection to close.
It is a common pattern that can be found not just in .Net but Java too.
MSDN should provide all the documentation you need on the correct way to call Dispose