“CodeDom” is an object model which represents actually a source code. It is designed to belanguage independent - once you create a “CodeDom” hierarchy for a program we can thengenerate the source code in any .NET compliant language. So let’s try to do something realpractical and simple to just get a feel of how powerful “CodeDom” is.
Note :- You can get the source code in CD in “CodeDom” folder.We will try to generate the following code below. The below code which will be generated doesnot do anything special buy just displays a hello message and waits for the key to be pressed.
The “Codedom” folder in the CD has one “GenerateCode” method which returns“CodeCompileUnit” object. “CodeDom” is nothing but a full DOM model where every objectin the structure represents a code unit.
63
RELATED POST
VISUAL STUDIO INTRODUCTION
C SHARP INTRODUCTION
C SHARP OUT LOOK
DOT NET AND C SHARP
C SHARP APPLICATION STRICTURE
OOPS INTRODUCTION
OOPS AND C SHARP
IDE AND C SHARP
INSTANTIATING OBJECTS IN C SHARP
CLASSES AND OBJECTS IN C SHARP
OPERATORS IN C SHARP
SWITCH AND ITERATION IN C SHARP
BRANCHING IN C SHARP
CONSTANTS AND STRING
Note :- You can get the source code in CD in “CodeDom” folder.We will try to generate the following code below. The below code which will be generated doesnot do anything special buy just displays a hello message and waits for the key to be pressed.
The “Codedom” folder in the CD has one “GenerateCode” method which returns“CodeCompileUnit” object. “CodeDom” is nothing but a full DOM model where every objectin the structure represents a code unit.
63
RELATED POST
VISUAL STUDIO INTRODUCTION
C SHARP INTRODUCTION
C SHARP OUT LOOK
DOT NET AND C SHARP
C SHARP APPLICATION STRICTURE
OOPS INTRODUCTION
OOPS AND C SHARP
IDE AND C SHARP
INSTANTIATING OBJECTS IN C SHARP
CLASSES AND OBJECTS IN C SHARP
OPERATORS IN C SHARP
SWITCH AND ITERATION IN C SHARP
BRANCHING IN C SHARP
CONSTANTS AND STRING
No comments:
Post a Comment