CreateProvider() public method

public CreateProvider ( ) : CodeDomProvider
return CodeDomProvider
Exemplo n.º 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;
                }
            }
        }
Exemplo n.º 2
0
        public static CodeDomProvider CreateProvider(string language, IDictionary <string, string> providerOptions)
        {
            CompilerInfo ci = GetCompilerInfo(language);

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

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

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

            return(compilerInfo.CreateProvider(providerOptions));
        }