I read somewhere that when you create a class you should implemente IDisposable so that you can wrap instances of your class in a using statement:
class Customer : IDisposable
{
public void Dispose()
{
}
}
and
List<Customer> Customers = new List<Customer>();
foreach (Customer customer in Customers)
{
using (customer)
{
}
}
I would like to know what you guys think on this. Thanks
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people