I need to use double quotes in a string that uses the @ symbol. Using double quotes is breaking the string. I tried escaping with \, but that doesn't work. Ideas?
+11
A:
I believe this should work:
string myString = @"Here is my ""quoted"" text.";
Patrick
2010-09-04 00:16:21
@Patrick, Yep, that works. Thanks!
Paul Fryer
2010-09-04 00:22:14
+1
A:
You double the quotes inside a verbatim string to get a quote character.
This makes your given sample:
(@"PREFIX rdfs: <" + rdfs + @">
SELECT ?s ?p ?o
WHERE { ?s ?p rdfs:Literal }
{?s rdfs:label ""date""}");
GBegen
2010-09-04 00:24:50