Using CodeDOM in .NET 2.0
page 6 of 8
by Uday Denduluri
Feedback
Average Rating: 
Views (Total / Last 10 Days): 38791/ 92

Understanding the importance of the CodeDomProvider class

First, let us identify some of the functions of CodeDomProvider class in a tabular format.

S NO  

Method Name / Property Name         

Description

1

CompileAssemblyFromSource

Compiles an array of source code strings.

2

CreateCompiler

 

Creates an ICodeCompiler that can be used for compilation and returns it.

3

CreateProvider

Creates a CodeDomProvider and returns it.

4

CompileAssemblyFromDom

Compiles an assembly based on the System.CodeDom trees contained in the specified array of System.CodeDom.CodeCompileUnit objects using the specified compiler

 

5

CompileAssemblyFromFile

Compiles an assembly by taking the name of the file.

6

GetLanguageFromExtension

Returns a language name associated with the specified file name extension as configured in the System.CodeDom.Compiler.CodeDomProvider compiler configuration section.

 

7

GetCompilerInfo

Returns the language provider and compiler configuration settings for the specified language.

                  

As we can see from the tabular format, we have methods of two types: Creating a compiler and compiling the source code from an existing compiler.  We can identify here that CodeDomProvider encapsulates the creation part and the compilation part.  Therefore, CodeDomProvider is a vital class in the architecture of CodeDom 2.0.


View Entire Article

User Comments

Title: 123   
Name: 123
Date: 2012-12-13 7:37:12 AM
Comment:
13
Title: Pointless article   
Name: Poin Tless
Date: 2009-08-17 12:17:46 AM
Comment:
Your article is a pointless copy and paste for nothing more than putting something on the web with your name on it. Learn to program you loser
Title: Query   
Name: Reetesh
Date: 2008-08-01 8:52:06 PM
Comment:
Hi,

I have read this Article. and I have seen the code but can u tell me where I write the code and how to use it. Please send me a sample code for it.

thanks
Title: Query   
Name: Reetesh
Date: 2007-06-05 6:16:56 AM
Comment:
Hi,

I have read this Article. and I have seen the code but can u tell me where I write the code and how to use it. Please send me a sample code for it.

thanks






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2024 ASPAlliance.com  |  Page Processed at 2024-04-25 7:02:17 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search