CreateProvider() public method

public CreateProvider ( ) : CodeDomProvider
return CodeDomProvider
Example #1
0
        static void AddCompilerInfo(CompilerInfo ci)
        {
            ci.CreateProvider();
            compiler_infos.Add(ci);

            string[] languages = ci.GetLanguages();
            if (languages != null)
            {
                foreach (string language in languages)
                {
                    compiler_languages [language] = ci;
                }
            }

            string[] extensions = ci.GetExtensions();
            if (extensions != null)
            {
                foreach (string extension in extensions)
                {
                    compiler_extensions [extension] = ci;
                }
            }
        }
Example #2
0
        public static CodeDomProvider CreateProvider(string language, IDictionary <string, string> providerOptions)
        {
            CompilerInfo ci = GetCompilerInfo(language);

            return(ci == null ? null : ci.CreateProvider(providerOptions));
        }
Example #3
0
        public static CodeDomProvider CreateProvider(string language)
        {
            CompilerInfo ci = GetCompilerInfo(language);

            return((ci == null) ? null : ci.CreateProvider());
        }
Example #4
0
        public static CodeDomProvider CreateProvider(string language)
        {
            CompilerInfo compilerInfo = GetCompilerInfo(language);

            return(compilerInfo.CreateProvider());
        }
Example #5
0
        public static CodeDomProvider CreateProvider(string language, System.Collections.Generic.IDictionary <string, string> providerOptions)
        {
            CompilerInfo compilerInfo = GetCompilerInfo(language);

            return(compilerInfo.CreateProvider(providerOptions));
        }