コード例 #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;
		}
コード例 #2
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);
        }
コード例 #3
0
		public CodeDomProvider GetProvider(CodeProviderInfo info)
		{
			return (CodeDomProvider) Activator.CreateInstance(info.CodeProvider);
		}
コード例 #4
0
 public CodeDomProvider GetProvider(CodeProviderInfo info)
 {
     return((CodeDomProvider)Activator.CreateInstance(info.CodeProvider));
 }