&是什么QUOT; @"是指在C# [英] what does "@" means in c#

查看:644
本文介绍了&是什么QUOT; @"是指在C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能重复:结果
何时使用@在c#?

字符串的SQLSelect = @SELECT * FROM销售。

推荐答案

据指解释下面的字符串作为文字。这意味着,在 \ 字符串中实际上是一个\输出,而不必把\\来指的是文字字符

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

这篇关于&是什么QUOT; @"是指在C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆