title: Override a static method
body: <p>I am extending a new class by inheriting from RolesService. In RolesService I have a static methog that I would like to override in my newly derived class. When I make the call from my derived object it does not use the overridden static method it actually calls the base class method. Any ideas?  </p>
  
  <pre><code>public class RolesService : IRolesService
  {
      public static bool IsUserInRole(string username, string rolename)
      {
          return Roles.IsUserInRole(username, rolename);
      }
  }
  
  public class MockRoleService : RolesService
  {
      public new static bool IsUserInRole(string username, string rolename)
      {
          return true;
      }
  }
  </code></pre>