Here is an easy example:
ASP.NET provides several static classes based around the membership provider. We are forever using them in our pages. We also have a need to extend the base System.Web.UI.Page class. So, one thought we had was to expose the various static classes in our OurCompany.Web.UI.Page implementation.
We cannot use a variable:
System.Web.Security.Roles myRoles;
We cannot expose it as a property:
internal System.Web.Security.Roles Roles { get { return System.Web.Security.Roles; } }
We cannot inherit it:
internal class Roles : System.Web.Security.Roles
Is it possible to expose the static class?