DirectoryInfo info = new DirectoryInfo(@"c:\");

I'm new too c#

Does this mean that the intance of DirectoryInfo  as a value associated to (@"C:\");
yguyon28Asked:
Who is Participating?
 
BeartlaoiConnect With a Mentor Commented:
Actually its associated to C:\
The () are there to group the parameters for the constructor of DirectoryInfo
The "" contain the string value of the first parameter
The @ means the string value does not use C++ escape sequences so \ can be specified by itself instead of \\
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.