Cint还是Integer.Parse? [英] Cint or Integer.Parse?

查看:69
本文介绍了Cint还是Integer.Parse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪一个更好用? CInt(字符串)还是Integer.Parse(字符串)?谢谢!

Which one is better to use? CInt(string) or Integer.Parse(string)? thanks!

推荐答案

*" Brian Henry" <峰; br ********** @ newsgroups.nospam> scripsit:
* "Brian Henry" <br**********@newsgroups.nospam> scripsit:
哪一个更好用? CInt(字符串)还是Integer.Parse(字符串)?谢谢!
Which one is better to use? CInt(string) or Integer.Parse(string)? thanks!




个人喜好。


-

Herfried K. Wagner [MVP]

< URL:http://dotnet.mvps.org/>



Personal preference.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>




" Brian亨利" <峰; br ********** @ newsgroups.nospam>在留言中写道

news:ua ************** @ TK2MSFTNGP12.phx.gbl ...

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
其中一个更好用? CInt(字符串)还是Integer.Parse(字符串)?谢谢!
Which one is better to use? CInt(string) or Integer.Parse(string)? thanks!




取决于你是否想保留VB感觉。或者去核心框架

一路上。



Depends on whether you want to retain the VB "feel" or go hardcore Framework
all the way.


一直在试图把所有旧的vb东西从头脑中删除所以听起来像是

解析一个很好用:)

" Jeff Johnson [MVP:VB]" <我*** @ enough.spam>在消息中写道

新闻:************** @ tk2msftngp13.phx.gbl ...
been trying to knock out all the old vb stuff out of my head so sounds like
the parse one is good to go with :)
"Jeff Johnson [MVP: VB]" <i.***@enough.spam> wrote in message
news:Of**************@tk2msftngp13.phx.gbl...

"布莱恩亨利<峰; br ********** @ newsgroups.nospam>在消息中写道
新闻:ua ************** @ TK2MSFTNGP12.phx.gbl ...

"Brian Henry" <br**********@newsgroups.nospam> wrote in message
news:ua**************@TK2MSFTNGP12.phx.gbl...
哪一个更好使用? CInt(字符串)或Integer.Parse(字符串)?
Which one is better to use? CInt(string) or Integer.Parse(string)?


谢谢!
取决于您是否要保留VB感觉。或者去硬核
框架一直。

thanks!
Depends on whether you want to retain the VB "feel" or go hardcore Framework all the way.



这篇关于Cint还是Integer.Parse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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