View Single Post
  #1 (permalink)  
Old November 30th, 2010, 02:48 PM
comecme comecme is offline
Registered User
 
Join Date: Nov 2010
Location: Noardburgum, Friesland, The Netherlands
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Ch 13 Use of @ in front of variable name

I noticed that in listing 13-1, a @ is placed in front of buff and in front of txtStartingPath.Text.
Code:

string startingPath = @startingPathTextBox.Text;
 
var myDrive = newDriveInfo(@buff); // Get its info

I wondered why. The only info I can find is that you can use @ in order to use a variable like int for instance, but that's not the case here. If it were, the declaration of the variable would've had the @ in front of it too.