Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is @ for in C#
Message
De
13/01/2011 07:49:34
 
 
À
13/01/2011 07:45:49
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01496013
Message ID:
01496014
Vues:
88
>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
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform