2. C#
we cannot able to choose to the page event or any event but in vb.net we can
choose and select the event.
3. C#
does not support with statement but vb.net support with statement.
4. Now
latest v4.0 has support optional
parameter in both c# and vb.net, but before
vb.net has support only optional parameters
5. C#
language is not user friendly one, but vb.net is very user friendly language.
6. C#
does support XML Documentation but VB.net does not support XML Documentation
7. C#
supports automatic memory management, but VB.net does not support automatic
memory management
8. C#
supports pointer under unsafe keyword, but VB.net does not support pointer.
9. C#
supports operator overloading but VB.net does not support operator overloading
10. VB.NET
can also force parameters to be passed by value, regardless of how they are
declared, by enclosing the parameters in extra parentheses. There is no way to
achieve this thing in C#.
Dim y As Integer = 5
Dim z As Integer
z = Add(y) 'This will set both Y and Z to 6.
z = Add((y)) 'This will set Z to 6 but Value of Y will not be change, as
we have included extra parenthese while calling.
'The Add function:
Public Function Add(ByRef x As Integer) As Integer
x = x + 1
Return x
End Function
|
By the code wise comparison refer the below link..
I hope I cover almost difference if anything
missing please share here……
0 comments:
Post a Comment