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

yguyon28 used Ask the Experts™
I'm new too c#

Does this mean that the intance of DirectoryInfo  as a value associated to (@"C:\");
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
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 \\

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start Today