Example #1
0
        private static IStructureTypeConfig CreateStructureTypeConfig <T>(Type structureType, Action <IStructureTypeConfigurator <T> > config = null) where T : class
        {
            var configurator = new StructureTypeConfigurator <T>(structureType);

            config?.Invoke(configurator);

            return(configurator.GenerateConfig());
        }
Example #2
0
        private static IStructureTypeConfig CreateStructureTypeConfig(Type structureType, Action <IStructureTypeConfigurator> config = null)
        {
            var configurator = new StructureTypeConfigurator(structureType);

            config?.Invoke(configurator);

            return(configurator.GenerateConfig());
        }