avatar
c*o
1
Can anyone tell me what vb.net can do but C# can't?
I read a lot of books. It seems to me that as long as there is a vb.net
statement, there is always a C# counterpart of it. But some C# statements
don't have any vb.net counterpart.
avatar
m*n
2
vb is easier than c#

【在 c*o 的大作中提到】
: Can anyone tell me what vb.net can do but C# can't?
: I read a lot of books. It seems to me that as long as there is a vb.net
: statement, there is always a C# counterpart of it. But some C# statements
: don't have any vb.net counterpart.

avatar
s*d
3
static method varible
example:
Public Sub myMethod()
Static Iterations as Integer
Iterations +=1
End Sub
This feature is not available in VC#
avatar
s*d
4
one more: Optional parameter in vb.net
Public Sub Cook(ByVal time as Integer,Optional ByVal temp as Integer=350)
End Sub

【在 s**d 的大作中提到】
: static method varible
: example:
: Public Sub myMethod()
: Static Iterations as Integer
: Iterations +=1
: End Sub
: This feature is not available in VC#

avatar
s*i
5
Similar c# counterpart:
public void Cook(params int[] list)
{
}

statements

【在 s**d 的大作中提到】
: one more: Optional parameter in vb.net
: Public Sub Cook(ByVal time as Integer,Optional ByVal temp as Integer=350)
: End Sub

avatar
k*i
6
oh,yes,this can be done by function overloading in c#【 在 seed (seed) 的大作
中提到: 】
statements
相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。