Example #1
0
		public CodeProviderInfo[] GetAvailableProviders()
		{
			CodeProviderInfo[] providers = new CodeProviderInfo[2];
			
			providers[0] = new CodeProviderInfo( "C#", typeof(Microsoft.CSharp.CSharpCodeProvider) );
			providers[1] = new CodeProviderInfo( "VB.Net", typeof(Microsoft.VisualBasic.VBCodeProvider) );
//			providers[2] = new CodeProviderInfo( "JScript", typeof(Microsoft.JScript.JScriptCodeProvider, Microsoft.JScript) );
//			providers[3] = new CodeProviderInfo( "VJ#", typeof(Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider) );
			
			return providers;
		}
        public CodeProviderInfo[] GetAvailableProviders()
        {
            CodeProviderInfo[] providers = new CodeProviderInfo[2];

            providers[0] = new CodeProviderInfo("C#", typeof(Microsoft.CSharp.CSharpCodeProvider));
            providers[1] = new CodeProviderInfo("VB.Net", typeof(Microsoft.VisualBasic.VBCodeProvider));
//			providers[2] = new CodeProviderInfo( "JScript", typeof(Microsoft.JScript.JScriptCodeProvider, Microsoft.JScript) );
//			providers[3] = new CodeProviderInfo( "VJ#", typeof(Microsoft.VJSharp.VJSharpCodeProvider, VJSharpCodeProvider) );

            return(providers);
        }
Example #3
0
		public CodeDomProvider GetProvider(CodeProviderInfo info)
		{
			return (CodeDomProvider) Activator.CreateInstance(info.CodeProvider);
		}
 public CodeDomProvider GetProvider(CodeProviderInfo info)
 {
     return((CodeDomProvider)Activator.CreateInstance(info.CodeProvider));
 }