简体   繁体   中英

trying to produce a string in C# containing “@” character

I have spent a ridiculous amount of time trying to figure out how to specify a literal string in C# that contains an "@" at symbol followed by a space (asp.net mvc 5 actually). Searching the internet has proved fruitless in this effort. Seems the search engines are smarter than I and already know I couldn't possibly be searching for what I asked for. Any help how to construct such an evil string? thanks.

答案:string atSymbol = "\@";

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM