c# - Reasons to use Close over Dispose for a Stream? -


this question has answer here:

is there ever valid reason use close method on stream instead of dispose?

only in system.windows.forms.form , system.data.sqlclient.sqlconnectoin close , dispose have different behavior. has dispose being hidden in situations behavior not clear in context. more explained here msdn difference between close , dispose


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -