Relative Content

Tag Archive for c++

Dispose Pattern in C#: Implementing Dispose and GC.SuppressFinalize

I am studying the Dispose pattern in C#, and I understand that the Dispose method is used when there are unmanaged resources. For example, if I have an unmanaged resource in FirstClass, and FirstClass is contained within a Node class, I need to implement the Dispose method for both, right?

Dispose Pattern in C#: Implementing Dispose and GC.SuppressFinalize

I am studying the Dispose pattern in C#, and I understand that the Dispose method is used when there are unmanaged resources. For example, if I have an unmanaged resource in FirstClass, and FirstClass is contained within a Node class, I need to implement the Dispose method for both, right?