using System; public class ContentModule : PortalControl { protected IContentProvider contentProvider { get { if (Settings["assemblyName"] != null && Settings["typeName"] != null) { return (IContentProvider) Activator.CreateInstance((string) Settings["assemblyName"], (string) Settings["typeName"]).Unwrap(); } throw new ApplicationException("Content Provider miss configured."); } } ... }