C#equivelant of VB.NET的Asc() [英] C# equivelant of VB.NET's Asc()

查看:78
本文介绍了C#equivelant of VB.NET的Asc()的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VB.NET有一个函数Asc(),它获取字符的Ascii值。我试图找到C#的equivelant函数
。有人可以帮我吗?

-

Nathan Sokalski
nj ******** @ hotmail.com
http://www.nathansokalski.com/

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/

推荐答案

Nathan Sokalski写道:
Nathan Sokalski wrote:

VB.NET有一个函数Asc(),它获取字符的Ascii值。我试图找到C#的equivelant函数
。有人可以帮我吗?
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?



(int)c


Arne


PS:我相信Asc是一个VB6''主义。

(int)c

Arne

PS: I believe Asc is a VB6''ism.




" Arne Vajh?j" < ar ** @ vajhoej.dkwrote in message

news:48 *********************** @ news.sunsite。 dk ...

"Arne Vajh?j" <ar**@vajhoej.dkwrote in message
news:48***********************@news.sunsite.dk...

Nathan Sokalski写道:
Nathan Sokalski wrote:

> VB.NET有一个函数,Asc (),它获取角色的Ascii值。我试图为C#找到一个equivelant函数。有人可以帮帮我吗?
>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?



(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.




" Fred" < fo ***** @ free.fr.invalidwrote in message

news:eP ************** @ TK2MSFTNGP06.phx.gbl ...

"Fred" <fo*****@free.fr.invalidwrote in message
news:eP**************@TK2MSFTNGP06.phx.gbl...

Dans:news:OS ************** @ TK2MSFTNGP06.phx.gbl,

Arnoldécrivait先生:
Dans : news:OS**************@TK2MSFTNGP06.phx.gbl,
Mr. Arnold écrivait :

>" Arne Vajh?j" < ar ** @ vajhoej.dkwrote in message
新闻:48 *********************** @ news.sunsite.dk。 ..
>"Arne Vajh?j" <ar**@vajhoej.dkwrote in message
news:48***********************@news.sunsite.dk. ..

>> Nathan Sokalski写道:
VB.NET有一个函数Asc(),它获取了一个字符。我正在尝试为C#找到一个平等的功能。
有人可以帮助我吗?

(int)c

Arne

PS:我相信Asc是一种VB6'主义。
>>Nathan Sokalski wrote:
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?

(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.



但它不等于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()的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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