问:String(Capital S)vs string(small s)? [英] Q: String (Capital S) vs string (small s)?
本文介绍了问:String(Capital S)vs string(small s)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
当
声明字符串时,使用String myString或字符串myString有什么区别?
问候
马丁
解决方案
无。
''字符串''是''String''类的别名。就像''int''是Int32结构的
的别名一样,等等。
" Martin Arvidsson" < ye ******* @ ms.comwrote in message
news:%2 **************** @ TK2MSFTNGP03.phx.gbl ...
嗨
$ b时使用String myString或字符串myString有什么区别$ b声明一个字符串?
问候
Martin
使用一个比另一个好吗?我有时会发现
自己想知道我是否应该将所有的int'声明为Int32'。
11月8日,4: 18 pm,Marina Levit [MVP] < some ... @nospam.comwrote:
无。
''string''是别名''String''类。就像''int''是Int32结构的
的别名一样,等等。
" Martin Arvidsson" < yeahri ... @ ms.comwrote in messagenews:%2 **************** @ TK2MSFTNGP03.phx.gb l ...
Hi
当
声明a时,使用String myString或字符串myString有什么区别串?
问候
Martin-隐藏引用文字 - 显示引用文字 -
不,我相当肯定编译器知道将一个翻译成另一个。
< gb **** @ gmail .comwrote in message
news:11 ********************** @ m73g2000cwd.googlegr oups.com ...
使用一个优于另一个是否有好处?我有时会发现
自己想知道我是否应该将所有的int'声明为Int32'。
11月8日,4: 18 pm,Marina Levit [MVP] < some ... @nospam.comwrote:
>无。
''string''是'的别名' 'String''类。正如'int''是Int32结构的别名
,等等。
Martin Arvidsson < yeahri ... @ ms.comwrote在
messagenews:%2 **************** @ TK2MSFTNGP03.phx.g bl ...
< blockquote class =post_quotes>
Hi
$ b时使用String myString或字符串myString有什么区别$ b声明一个字符串?
问候
Martin-隐藏引用文字 - 显示引用文字 -
Hi
What is the difference by using String myString or string myString when
declaring a string ?
Regards
Martin
解决方案
None.
''string'' is an alias for the ''String'' class. Just as ''int'' is an alias for
the Int32 structure, and so on.
"Martin Arvidsson" <ye*******@ms.comwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...Hi
What is the difference by using String myString or string myString when
declaring a string ?
Regards
Martin
Is there a benefit to using one over the other? I''ve sometimes found
myself wondering if I should declare all my int''s as Int32''s.
On Nov 8, 4:18 pm, "Marina Levit [MVP]" <some...@nospam.comwrote:None.
''string'' is an alias for the ''String'' class. Just as ''int'' is an alias for
the Int32 structure, and so on.
"Martin Arvidsson" <yeahri...@ms.comwrote in messagenews:%2****************@TK2MSFTNGP03.phx.gb l...
Hi
What is the difference by using String myString or string myString when
declaring a string ?
Regards
Martin- Hide quoted text -- Show quoted text -
No, I am fairly certain the compiler knows to translate one to the other.
<gb****@gmail.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...Is there a benefit to using one over the other? I''ve sometimes found
myself wondering if I should declare all my int''s as Int32''s.
On Nov 8, 4:18 pm, "Marina Levit [MVP]" <some...@nospam.comwrote:>None.
''string'' is an alias for the ''String'' class. Just as ''int'' is an alias
for
the Int32 structure, and so on.
"Martin Arvidsson" <yeahri...@ms.comwrote in
messagenews:%2****************@TK2MSFTNGP03.phx.g bl...
Hi
What is the difference by using String myString or string myString when
declaring a string ?
Regards
Martin- Hide quoted text -- Show quoted text -
这篇关于问:String(Capital S)vs string(small s)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文