C#的关键字作为变量 [英] C# Keywords as a variable
本文介绍了C#的关键字作为变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在VB.NET,你可以围绕一个变量名与支架和使用关键字作为变量名,是这样的:
暗淡[返回]的String =
有一个C#equivlent做呢?
解决方案
字符串@string =;
In VB.NET, you can surround a variable name with brackets and use keywords as variable names, like this:
Dim [goto] As String = ""
Is there a C# equivlent to doing this?
解决方案
string @string = "";
这篇关于C#的关键字作为变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文