【发布时间】:2016-05-09 17:22:26
【问题描述】:
C#中以下代码的等价物是什么?
Dim intValidChars As New List(Of Integer)(New Integer() { Asc("0"), Asc("1"), Asc("2"), Asc("3"), Asc("4"), Asc("5"), Asc("6"), Asc("7"), Asc("8"), Asc("9"), _
Asc("A"), Asc("B"), Asc("C"), Asc("D"), Asc("E"), Asc("F"), Asc("G"), Asc("H"), Asc("I"), Asc("J")})
提前致谢。
【问题讨论】:
-
@AlexB。你应该在这个样本上试一试。
-
@DaveDoknjas 我做到了。它立即生效。
-
@AlexB。尝试编译它 - 你会在 Microsoft.VisualBasic 中找不到“字符串”类。
标签: c# vb.net string list integer