Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is @ for in C#
Message
From
13/01/2011 08:48:55
 
 
To
13/01/2011 07:54:54
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01496013
Message ID:
01496028
Views:
42
>>>>I came across a line of code like this:
>>>>
>>>>
string path = @"C:\Temp\" + this.oReceipt.Entity.ReceiptNumber + @".pdf";
>>>>
>>>>What is the "@" for?
>>>>
>>>>I am now wanting to store the folder ina variable, so how would I change that line to something like this:
>>>>
>>>>
string path = @oAppSettings.ReceiptFolder + this.oReceipt.Entity.ReceiptNumber + @".pdf";
>>>
>>>There is a nice explanation here:
>>>http://en.csharp-online.net/CSharp_FAQ:_What_does_at_sign_identifier_mean
>>
>>Thanks, very clear now :)
>
>:o) Glad I could help. If you want to research it more, look up verbatim identifiers...

Thanks again. I had googled "c# @" and got nothing :)
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Previous
Reply
Map
View

Click here to load this message in the networking platform