Dispose() in Destructor in C#?
Sasi Rekha
Select an image from your device to upload
Dispose methode is used to clear unmanaged objects and resources. Now what are unmanaged resources in .NetFramework? Ans. is none but .net uses resources out of .Net framework as well like File handeling, SQlConnection which needs to be disposed.Example`using(SqlConnection conn = new SqlConnection(connectionString)){
}`
then dispose method is alled after this using block is completed
If you want to call dispose for you class then you need to implemet IDisposable interface and do whatever this interface asks you to do