title: How to call custom methods of a role provider?
body: <p>OK, I've created my custom role provider and added it to the web.config. Here's part of my code for the role provider:</p>
  
  <pre><code>public class MyCustomRoleProvider : RoleProvider
  {
      public override bool IsUserInRole(string username, string roleName)
      {
          return true;
      }
  
      public string MyCustomFunction()
      {
          return "its my custom string";
      }
  }
  </code></pre>
  
  <p>When I need to use the role provider in my application, I'll call it like this:</p>
  
  <pre><code>var truth = Roles.IsUserInRole("myUsername", "myFakeRole");
  </code></pre>
  
  <p>OK, Great!, it calls my custom code (I can tell from debugging) and returns true every time. Why can I not make the following call on my custom role provider?</p>
  
  <pre><code>var no_compile = Roles.MyCustomFunction();
  </code></pre>
  
  <p>how can I make all public members of my custom role provider accessible?</p>