IList <IModelConfiguration> GetMergedConfigurations()
        {
            var defaultConfiguration = DefaultModelConfiguration;

            if (defaultConfiguration == null)
            {
                return(ModelConfigurations);
            }

            var configurations = new IModelConfiguration[ModelConfigurations.Count + 1];

            configurations[0] = new DelegatingModelConfiguration(defaultConfiguration);
            ModelConfigurations.CopyTo(configurations, 1);

            return(configurations);
        }
Ejemplo n.º 2
0
        IList <IModelConfiguration> GetMergedConfigurations()
        {
            Contract.Ensures(Contract.Result <IList <IModelConfiguration> >() != null);

            var defaultConfiguration = DefaultModelConfiguration;

            if (defaultConfiguration == null)
            {
                return(ModelConfigurations);
            }

            var configurations = new IModelConfiguration[ModelConfigurations.Count + 1];

            configurations[0] = new DelegatingModelConfiguration(defaultConfiguration);
            ModelConfigurations.CopyTo(configurations, 1);

            return(configurations);
        }