In the .Net framework there exist many classes that implement interfaces non-virtually. Presumably this is because it does not make any sense for those methods to be overridden. However, sometimes it is helpful to override them for debugging purposes. This article shows you how to override the non-overrideable.
There is no magic to this; it is just another way of using the "new" keyword.
Create a derived class that inherits from the class you wish to inherit.
Also inherit the interface that contains the methods you wish to override.
Using the "new" keyword, implement the methods you wish to override.
An example of overriding Renewal of ClientSponsor is this is shown below:
public class MyClientSponsor : ClientSponsor, ISponsor
/// Even though ClientSponsor.Renew is not virtual, you can
/// override it like this.
/// Notice that ISponsor is implemented by this class.
/// <param name="lease"></param>
new public TimeSpan Renewal(ILease lease)
/// The main entry point for the application.
static void Main(string args)
ISponsor s = (ISponsor)new MyClientSponsor();