Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,有人知道c#中的“”和“”有什么区别吗?我试过在网上搜索,但什么也没找到。谢谢你的答案。
“Y”是一个字符串,“Y”是一个字符。
单引号编码单个字符(数据类型 char),而双引号编码多个字符的字符串。区别类似于单个整数和整数数组之间的区别。
来源