Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-03-05
1
Medium Priority
?
218 Views
Last Modified: 2014-03-06
I'm new too c#

Does this mean that the intance of DirectoryInfo  as a value associated to (@"C:\");
0
Comment
Question by:yguyon28
1 Comment
 
LVL 9

Accepted Solution

by:
Beartlaoi earned 2000 total points
ID: 39907828
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

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Loops Section Overview

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question