T
Tony Johansson
Hello!
In a book that I'm reading it says.
"For some classes, the notion of a closse() method is more logical than
Dispose();for example
when dealing with files or database connections. In these cases it is common
to implement the IDisposable interface and then implement a separate Close()
method that simply calls Dispose(). This approach provides clarity in the
use of your classes but also supports the using statement provided by C#:"!
Can somebidy explain what this text is trying to say.
//Tony
In a book that I'm reading it says.
"For some classes, the notion of a closse() method is more logical than
Dispose();for example
when dealing with files or database connections. In these cases it is common
to implement the IDisposable interface and then implement a separate Close()
method that simply calls Dispose(). This approach provides clarity in the
use of your classes but also supports the using statement provided by C#:"!
Can somebidy explain what this text is trying to say.
//Tony