Often, in C# documentation, you come across a member where the description says something along the lines of "be sure to call the base method if you override this."
Is there a way to ensure at compile time that one has actually called the base function?
Here's an example: Implementing a Dispose Method
From the first lines:
A type's Dispose method should release all the resources that it owns. It should also release all resources owned by its base types by calling its parent type's Dispose method.
EDIT
I was browsing, and I came across this article, which seems rather relevant. It's more of a small than an error, ie. it has valid uses (such as those mentioned):