How to: Create Interfaces with Static Methods via IL?
If you try to add a static member to an interface, you will get the following error: The modifier ‘static’ is not valid for this item In this case, you should create an abstract class instead of an interface, because interfaces are contracts and should not implement any methods. However, it’s still possible to do so using IL. The error above was produced because of the following rule in the CLI spec : “CLS Rule 19: CLS-compliant interfaces shall not define static methods, nor shall they define fields….( read more )
Here is the original:
How to: Create Interfaces with Static Methods via IL?


