Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Reg: .NET Framework Class Library

$
0
0

Hi

In my sample program I have the below three statements

using System;

using System.CodeDom;

using System.CodeDom.Compiler;

and in Main()

and I am able to create a new type called myclass using the below line

CodeTypeDeclaration myclass = new CodeTypeDeclaration("myclass");

however when i delete the statement "using System.CodeDom" from the above code, i am not able to call the below statement

CodeTypeDeclaration myclass = new CodeTypeDeclaration("myclass");

Why is it so?

I mean doesnt System.CodeDom.Compiler include everything that is there in System.CodeDom because as I see it System.CodeDom.Compiler derives directly from System.CodeDom so why do i need to separately call System.CodeDom and System.CodeDom.Compiler

Regards,

Srinivasan


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>