Possible Duplicate:
How can I force inheriting classes to implement a static method in C#?
I understand abstract and static are opposite, but I want to force derived classes to implement a static method. how can I do that?
Edit after SimonC :
While trying to describe what I want to do, i realized that static methods of super class will not be able to call the overridden subclass version.
But olivier’s alternative solution looks nice.
A possible approach of combining a static behavior with inheritance or interface implementation is to use the singleton pattern. The access to a singleton object is static, but the object is created with
newlike a "normal" objectAccessing a method of the singleton