public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionControllerMvc)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionControllerMvc.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.Class:
            {
                returnValue = new SectionClass <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.Constructors:
            {
                returnValue = new SectionConstructors <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.Properties:
            {
                returnValue = new SectionProperties <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.ActionMethods:
            {
                returnValue = new SectionActionMethods <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.ClassClose:
            {
                returnValue = new SectionClassClose <T>(pass);
                break;
            }

            case eBuildSectionControllerMvc.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
예제 #2
0
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionEntityPartial)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionEntityPartial.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.Class:
            {
                returnValue = new SectionClass <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.Properties:
            {
                returnValue = new SectionProperties <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.PrivateMethods:
            {
                returnValue = new SectionPrivateMethods <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.InternalClasses:
            {
                returnValue = new SectionInternalClasses <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.ClassClose:
            {
                returnValue = new SectionClassClose <T>(pass);
                break;
            }

            case eBuildSectionEntityPartial.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
예제 #3
0
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionServiceInterface)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionServiceInterface.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.Interface:
            {
                returnValue = new SectionInterface <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.Properties:
            {
                returnValue = new SectionProperties <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.Methods:
            {
                returnValue = new SectionMethods <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.InterfaceClose:
            {
                returnValue = new SectionInterfaceClose <T>(pass);
                break;
            }

            case eBuildSectionServiceInterface.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionAutoMapperProfile)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionAutoMapperProfile.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionAutoMapperProfile.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionAutoMapperProfile.Class:
            {
                returnValue = new SectionClass <T>(pass);
                break;
            }

            case eBuildSectionAutoMapperProfile.Constructors:
            {
                returnValue = new SectionConstructors <T>(pass);
                break;
            }

            case eBuildSectionAutoMapperProfile.ClassClose:
            {
                returnValue = new SectionClassClose <T>(pass);
                break;
            }

            case eBuildSectionAutoMapperProfile.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
예제 #5
0
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionEnumeration)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionEnumeration.UsingStatements:
            {
                returnValue = new SectionEmpty <T>(pass);
                break;
            }

            case eBuildSectionEnumeration.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionEnumeration.Enum:
            {
                returnValue = new SectionEnum <T>(pass);
                break;
            }

            case eBuildSectionEnumeration.Members:
            {
                returnValue = new SectionMembers <T>(pass);
                break;
            }

            case eBuildSectionEnumeration.EnumClose:
            {
                returnValue = new SectionEnumClose <T>(pass);
                break;
            }

            case eBuildSectionEnumeration.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
예제 #6
0
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionEntity)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionEntity.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionEntity.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionEntity.Attributes:
            {
                returnValue = new SectionAttributes <T>(pass);
                break;
            }

            case eBuildSectionEntity.Class:
            {
                returnValue = new SectionClass <T>(pass);
                break;
            }

            case eBuildSectionEntity.Fields:
            {
                returnValue = new SectionFields <T>(pass);
                break;
            }

            case eBuildSectionEntity.Constructors:
            {
                returnValue = new SectionConstructors <T>(pass);
                break;
            }

            case eBuildSectionEntity.Properties:
            {
                returnValue = new SectionProperties <T>(pass);
                break;
            }

            case eBuildSectionEntity.IValidatable:
            {
                returnValue = new SectionIValidatable <T>(pass);
                break;
            }

            case eBuildSectionEntity.PublicMethods:
            {
                returnValue = new SectionPublicMethods <T>(pass);
                break;
            }

            case eBuildSectionEntity.PrivateMethods:
            {
                returnValue = new SectionPrivateMethods <T>(pass);
                break;
            }

            case eBuildSectionEntity.ClassClose:
            {
                returnValue = new SectionClassClose <T>(pass);
                break;
            }

            case eBuildSectionEntity.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }
        public static ISection CreateSection <T>(T buildSection, BuildPass <T> pass)
            where T : struct, IConvertible
        {
            ISection returnValue       = null;
            var      buildSectionValue = (eBuildSectionContext)(object)buildSection;

            switch (buildSectionValue)
            {
            case eBuildSectionContext.UsingStatements:
            {
                returnValue = new SectionUsingStatements <T>(pass);
                break;
            }

            case eBuildSectionContext.Namespace:
            {
                returnValue = new SectionNamespace <T>(pass);
                break;
            }

            case eBuildSectionContext.Class:
            {
                returnValue = new SectionClass <T>(pass);
                break;
            }

            case eBuildSectionContext.Fields:
            {
                returnValue = new SectionEmpty <T>(pass);
                break;
            }

            case eBuildSectionContext.Constructors:
            {
                returnValue = new SectionConstructors <T>(pass);
                break;
            }

            case eBuildSectionContext.Properties:
            {
                returnValue = new SectionProperties <T>(pass);
                break;
            }

            case eBuildSectionContext.ProtectedMethods:
            {
                returnValue = new SectionProtectedMethods <T>(pass);
                break;
            }

            case eBuildSectionContext.PublicMethods:
            {
                returnValue = new SectionEmpty <T>(pass);
                break;
            }

            case eBuildSectionContext.PrivateMethods:
            {
                returnValue = new SectionPrivateMethods <T>(pass);
                break;
            }

            case eBuildSectionContext.ClassClose:
            {
                returnValue = new SectionClassClose <T>(pass);
                break;
            }

            case eBuildSectionContext.NamespaceClose:
            {
                returnValue = new SectionNamespaceClose <T>(pass);
                break;
            }
            }

            return(returnValue);
        }