Autor Beitrag
M-Cha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Di 27.10.09 14:21 
Kann nirgendwo finden, was dieses @-Zeichen vor den Anführungszeichen bedeutet.

ausblenden C#-Quelltext
1:
pfadd = pfad + @"\test\sonstiges";					


Kann mir jemand die Bedeutung nennen?


Moderiert von user profile iconChristian S.: Topic aus Basistechnologien verschoben am Di 27.10.2009 um 15:31
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19314
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 27.10.09 14:29 
Damit wird verhindert, dass die \ als Maskierungszeichen verstanden werden, der String also unverändert bleiben soll. Sonst kannst du auch doppelte \\ ohne @ benutzen, das geht auch.
M-Cha Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67



BeitragVerfasst: Di 27.10.09 14:35 
Super Danke!

Hab ge googelt, aber er hat mir nciht das rausgesucht, was ich gesucht habe!