示例#1
0
        public CSharpCodeProvider(IProjectManager projectManager, IProjectConfiguraiton projectConfiguration, DefaultCodeProvider defaultCodeProvider, ICodeItemProvider codeItemProvider, IIOWrapper iOWrapper, IDialogFactory dialogFactory)
        {
            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }
            if (projectConfiguration == null)
            {
                throw new ArgumentNullException(nameof(projectConfiguration));
            }
            if (defaultCodeProvider == null)
            {
                throw new ArgumentNullException(nameof(defaultCodeProvider));
            }
            if (codeItemProvider == null)
            {
                throw new ArgumentNullException(nameof(codeItemProvider));
            }
            if (iOWrapper == null)
            {
                throw new ArgumentNullException(nameof(iOWrapper));
            }

            this.projectManager       = projectManager;
            this.defaultCodeProvider  = defaultCodeProvider;
            this.projectConfiguration = projectConfiguration;
            this.codeItemProvider     = codeItemProvider;
            this.iOWrapper            = iOWrapper;
            this.dialogFactory        = dialogFactory;
        }
示例#2
0
        public CodeProviderFactory(IProjectManager projectManager, DefaultCodeProvider defaultCodeProvider)
        {
            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }
            if (defaultCodeProvider == null)
            {
                throw new ArgumentNullException(nameof(defaultCodeProvider));
            }

            this.projectManager      = projectManager;
            this.defaultCodeProvider = defaultCodeProvider;
        }
示例#3
0
        public CSharpCodeProvider(IProjectManager projectManager, IProjectConfiguraiton projectConfiguration, DefaultCodeProvider defaultCodeProvider)
        {
            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }
            if (projectConfiguration == null)
            {
                throw new ArgumentNullException(nameof(projectConfiguration));
            }
            if (defaultCodeProvider == null)
            {
                throw new ArgumentNullException(nameof(defaultCodeProvider));
            }

            this.projectManager       = projectManager;
            this.defaultCodeProvider  = defaultCodeProvider;
            this.projectConfiguration = projectConfiguration;
        }
        public CodeProviderFactory(IProjectManager projectManager, DefaultCodeProvider defaultCodeProvider, IIOWrapper iOWrapper, IDialogFactory dialogFactory)
        {
            if (projectManager == null)
            {
                throw new ArgumentNullException(nameof(projectManager));
            }
            if (defaultCodeProvider == null)
            {
                throw new ArgumentNullException(nameof(defaultCodeProvider));
            }
            if (iOWrapper == null)
            {
                throw new ArgumentNullException(nameof(iOWrapper));
            }
            if (dialogFactory == null)
            {
                throw new ArgumentNullException(nameof(dialogFactory));
            }

            this.projectManager      = projectManager;
            this.defaultCodeProvider = defaultCodeProvider;
            this.iOWrapper           = iOWrapper;
            this.dialogFactory       = dialogFactory;
        }