问题描述
VB.NET有一个函数Asc(),它获取字符的Ascii值。我试图找到C#的equivelant函数
。有人可以帮我吗?
-
Nathan Sokalski
VB.NET has a function, Asc(), that gets the Ascii value of a character. I am
attempting to find an equivelant function for C#. Can somebody help me here?
--
Nathan Sokalski
nj********@hotmail.com
http://www.nathansokalski.com/
推荐答案
(int)c
Arne
PS:我相信Asc是一个VB6''主义。
(int)c
Arne
PS: I believe Asc is a VB6''ism.
(int)c
Arne
PS:我相信Asc是一种VB6'主义。
(int)c
Arne
PS: I believe Asc is a VB6''ism.
Asc()仍然可以用VB.Net。它也在VB3-VB6和QuickBasic中。
Asc() can still be used VB.Net. It was in VB3-VB6 and QuickBasic too.
Asc()仍然可以用VB.Net。它也是在VB3-VB6和QuickBasic中。
Asc() can still be used VB.Net. It was in VB3-VB6 and QuickBasic too.
但它不等于Arne的解决方案,因为它返回windows默认
编码字符代码(不是Unicode值)
But it''s not equivalent to Arne''s solution as it returns windows default
encoding character code (not Unicode value)
这与任何事情有什么关系?这不是一个VB6'的主义就是
在这里被指出而没有别的。
What does that have to do with anything? It''s not a VB6''ism is all that was
being pointed out here and nothing else.
这篇关于C#equivelant of VB.NET的Asc()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!