Hacker News new | past | comments | ask | show | jobs | submit login

A singleton object doesn't need to be re-allocated.



Static classes are an easy way of implementing the Singleton pattern in C# ...


A singleton can implement interfaces, static classes cant.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: