How to call dispose method in C# ?
Use try and finally pattern for calling dispose method.
Use using statement to wrap an object which is using unmanaged resources to call its dispose method automatically.
It is always better to call dispose method in destructors.
None of the above.
refer the previous question for better understanding .
Back To Top