c*o 发帖数: 70 | 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. |
m*******n 发帖数: 154 | 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.
|
s**d 发帖数: 7 | 3 static method varible
example:
Public Sub myMethod()
Static Iterations as Integer
Iterations +=1
End Sub
This feature is not available in VC# |
s**d 发帖数: 7 | 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#
|
s*i 发帖数: 5025 | 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
|
k****i 发帖数: 1072 | 6 oh,yes,this can be done by function overloading in c#【 在 seed (seed) 的大作
中提到: 】
statements |