“ @”代表什么在C#中表示 [英] What does "@" mean in C#
本文介绍了“ @”代表什么在C#中表示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可能重复:
何时在c#中使用@?
Fe string sqlSelect = @ SELECT * FROM Sales。
推荐答案
它表示将以下字符串解释为文字。这意味着,字符串中的 \
实际上将是输出中的 \
,而不必将 \\
表示文字字符
It means interpret the following string as literal. Meaning, the \
in the string will actually be a "\"
in the output, rather than having to put "\\"
to mean the literal character
这篇关于“ @”代表什么在C#中表示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文