public ConfigurationDesignManagerProxy(Type managerType) { this.manager = Activator.CreateInstance(managerType) as IConfigurationDesignManager; if (this.manager == null) { throw new ArgumentException(SR.ExceptionNotAssignableType(managerType.AssemblyQualifiedName, typeof(IConfigurationDesignManager).AssemblyQualifiedName)); } }
/// <summary> /// /// </summary> /// <param name="managerType"></param> public ConfigurationDesignManagerProxy(Type managerType) { if (managerType == null) { throw new ArgumentNullException("managerType"); } dependentTypes = new List <Type>(); manager = Activator.CreateInstance(managerType) as IConfigurationDesignManager; if (this.manager == null) { throw new ArgumentException(string.Format(Resources.Culture, Resources.ExceptionNotAssignableType, managerType.AssemblyQualifiedName, typeof(IConfigurationDesignManager).AssemblyQualifiedName)); } }