Ejemplo n.º 1
0
		public ConfiguratorAttribute(Type configurator, params object[] Params)
		{
      if (configurator == null)
        throw new Exception("Configurator cannot be null!");

      if (!configurator.IsSubclassOf(typeof(AbstractConfigurator)))
        throw new Exception("Configurator must derive from AbstractConfigurator");

      _Configurator = (AbstractConfigurator)Activator.CreateInstance(configurator, Params);
    }
Ejemplo n.º 2
0
        public ConfiguratorAttribute(Type configurator, params object[] Params)
        {
            if (configurator == null)
            {
                throw new Exception("Configurator cannot be null!");
            }

            if (!configurator.IsSubclassOf(typeof(AbstractConfigurator)))
            {
                throw new Exception("Configurator must derive from AbstractConfigurator");
            }

            _Configurator = (AbstractConfigurator)Activator.CreateInstance(configurator, Params);
        }
Ejemplo n.º 3
0
 public ConfiguratorAttribute()
 {
     _Configurator = new ConfigFileConfigurator();
 }
Ejemplo n.º 4
0
 public ConfiguratorAttribute()
 {
   _Configurator = new ConfigFileConfigurator();
 }