put new in front of System.IO.DirectoryInfo(@"c:\");
That should help
On 7/25/05, Steve <[EMAIL PROTECTED]> wrote:
I downloaded and installed C# Express Beta 2, and have been going
through the tutorial to try to learn C#, but I am unable to get the
sample programs to compile. Do you think this is a Beta issue?
The one I tried today is "How To: Create a C# Console Application"
I created the program step-by-step per the tutorial, but I get an
error on this line of code:
System.IO.DirectoryInfo dir = System.IO.DirectoryInfo(@"c:\");
The error is: 'System.IO.DirectoryInfo' is a 'type', which is not
valid in the given context.
What does that mean and how do I solve it?
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Microsofts_C_Sharp/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
YAHOO! GROUPS LINKS
- Visit your group "Microsofts_C_Sharp" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
