C# Keywords Implement IDispose -


what keywords implement or call dispose() in background in c#? when necessary explicitly call dispose on versus using idispose?

if object implements idispose, yes, call dispose on object.

for example, objects using block:

using (var ms = new memorystream()) {   //... } 

here more information on implementing dispose method

edit: old stack overflow post great: do need dispose of objects , set them null?


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

html - How can i make an element from a bottom stacking context stays in front of another higher stacking context? -

sql - MySQL Custom calculate views -