473,322 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Diff. between C# and VB.net

Abc


Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
Nov 20 '05 #1
12 1766
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge
-----Original Message-----
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
.

Nov 20 '05 #2
Useful document Jorge,

I've bookmarked if for future reference.
Regards - OHM

Jorge wrote:
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge
-----Original Message-----
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
.


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #3
* "Abc" <an*******@discussions.microsoft.com> scripsit:
Does anyone know a document which list syntactic
difference between C# and VB.Net?


<http://msdn.microsoft.com/library/en-us/vsintro7/html/vxoriLanguageEquivalentsKeywords.asp>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4
Cor
As addition to Jorge

Language compare
http://msdn.microsoft.com/library/en...quivalents.asp

Cor
Nov 20 '05 #5
"Abc" <an*******@discussions.microsoft.com> schrieb
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.

http://msdn.microsoft.com/library/en...quivalents.asp
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6
Cor
You have time lag otherwise I did not send it.


http://msdn.microsoft.com/library/en...quivalents.asp

Nov 20 '05 #7
"Cor" <no*@non.com> schrieb
You have time lag otherwise I did not send it.


http://msdn.microsoft.com/library/en...quivalents.asp
When I posted mine yours was not there. (otherwise I did not send it)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8
Jorge,

It's a nice layout. Unfortunately it contains incorrect information.

--
Kathleen Dollard
Microsoft MVP
Author "Code Generation in Microsoft .NET"
"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge
-----Original Message-----
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
.

Nov 20 '05 #9
Whats is incorrect !
Kathleen Dollard wrote:
Jorge,

It's a nice layout. Unfortunately it contains incorrect information.
"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge
-----Original Message-----
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
.


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #10
Are you serious? Did you look at the page? When was the last time you used a
ufloat in C#? A BitAnd in VB.NET? This page was created by people/a person
that doesn't understand either language, much less the dozens of nuances in
how they behave.

A few examples...

ufloat, udouble, and DateTime are not C# types. DateTime is a system type
used in C#, but is no more a C# type than UInt is a VB.NET type.

Dim f As Double = 2.5
Dim i As Integer = CType(f)

and

double f =2.5;
int i = (int)f

are ONLY equivalent because they selected the special case of Banker's
rounding. Try 3.5. These are certainly NOT equivaelent except in special
cases for any of the fractional values (VB.NET rounds, and C# truncates).

That's four things that are just wrong and we aren't even out of the Data
Types section yet.

I will acknowledge that they got the first section - Comments - correct.
The got the constants section technically correct, except that anyone who
sets Pi as a constant does not understand the capabilities of the framework.

The difference between VB and C# behavior with enums, is actually
interesting, but they fail to explain why a 100% framework scenario would
have different behavior (the important part of that example). What happens
is that C# is being stupid (in this particular case, not in general) and
failing to recognize that an enum is a special case of a particlar type of
integer. VB.NET recognizes this and calls the WriteLine overload for the
proper integer (Int32, since its a default - which they fail to show the
syntax for changing). C# effectively does
Console.WriteLine(CObj(Status.Pass)) (where Status.Pass is an enum value).

Is that enough? I quit after less than 20% of the page. I don't have time to
track down that many problems in other people's work. I stand behind what I
said. The layout is nice, too bad there is so much incorrect, incomplete,
and misleading information on the page.

I realize that the MS page is inadequate. But a page that is full of
incorrect information is signifciantly less helpful.

FWIW, I am forwarding this post to the author's of the page. They can decide
what to do with it. I make mistakes and expect people to point them out. But
if I ever post something with four errors in the first 20 lines, I assure
you I'll pull it down until I figure out why I made so many mistakes and get
it fixed.

--
Kathleen Dollard
Microsoft MVP
Author "Code Generation in Microsoft .NET"
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in message
news:eC**************@TK2MSFTNGP09.phx.gbl...
Whats is incorrect !
Kathleen Dollard wrote:
Jorge,

It's a nice layout. Unfortunately it contains incorrect information.
"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge

-----Original Message-----
Does anyone know a document which list syntactic
difference between C# and VB.Net?

If Yes, please help me out.
Thanks
.


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com

Nov 20 '05 #11
Yes I was serious, but I only took a very quick squint at it so was
surprised when your apparently "off-hand" comment was made. However, It is
clear by the length of your reply that you thought you had some basis for
your remark.

I prefer people who post this kind of comment to give some evidence 'with'
their post rather than having to provoke them to do so later. I also find
your arrogant, flippant, assumptive and frankly rather snobbish attitude to
be an unwelcome irritant.
Regards - OHM
Kathleen Dollard wrote:
Are you serious? Did you look at the page? When was the last time you
used a ufloat in C#? A BitAnd in VB.NET? This page was created by
people/a person that doesn't understand either language, much less
the dozens of nuances in how they behave.

A few examples...

ufloat, udouble, and DateTime are not C# types. DateTime is a system
type used in C#, but is no more a C# type than UInt is a VB.NET type.

Dim f As Double = 2.5
Dim i As Integer = CType(f)

and

double f =2.5;
int i = (int)f

are ONLY equivalent because they selected the special case of Banker's
rounding. Try 3.5. These are certainly NOT equivaelent except in
special cases for any of the fractional values (VB.NET rounds, and C#
truncates).

That's four things that are just wrong and we aren't even out of the
Data Types section yet.

I will acknowledge that they got the first section - Comments -
correct. The got the constants section technically correct, except
that anyone who sets Pi as a constant does not understand the
capabilities of the framework.

The difference between VB and C# behavior with enums, is actually
interesting, but they fail to explain why a 100% framework scenario
would have different behavior (the important part of that example).
What happens is that C# is being stupid (in this particular case, not
in general) and failing to recognize that an enum is a special case
of a particlar type of integer. VB.NET recognizes this and calls the
WriteLine overload for the proper integer (Int32, since its a default
- which they fail to show the syntax for changing). C# effectively
does Console.WriteLine(CObj(Status.Pass)) (where Status.Pass is an
enum value).

Is that enough? I quit after less than 20% of the page. I don't have
time to track down that many problems in other people's work. I stand
behind what I said. The layout is nice, too bad there is so much
incorrect, incomplete, and misleading information on the page.

I realize that the MS page is inadequate. But a page that is full of
incorrect information is signifciantly less helpful.

FWIW, I am forwarding this post to the author's of the page. They can
decide what to do with it. I make mistakes and expect people to point
them out. But if I ever post something with four errors in the first
20 lines, I assure you I'll pull it down until I figure out why I
made so many mistakes and get it fixed.
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> wrote in
message news:eC**************@TK2MSFTNGP09.phx.gbl...
Whats is incorrect !
Kathleen Dollard wrote:
Jorge,

It's a nice layout. Unfortunately it contains incorrect information.
"Jorge" <an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
Hello , check
http://www.harding.edu/USER/fmccown/...t_csharp_compa
rison.html

Kind Regards
Jorge

> -----Original Message-----
>
>
> Does anyone know a document which list syntactic
> difference between C# and VB.Net?
>
> If Yes, please help me out.
>
>
> Thanks
> .


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #12
Thanks, Kathleen, for pointing out some errors in the C# vs VB.NET
comparison page I created. I have gone back and made some changes.
Several items were incorrect because they were based on beta versions
of the language. I think you'll find the page very useful as a quick
reference.

Frank
Nov 20 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Charley | last post by:
I've got a diff file that I think is a patch for a bunch of file in a directory. How do I apply this file? I thought it was #patch myfile.diff But that does nothing. I must be missing...
0
by: python | last post by:
Hi- I have a lot of monthly time series data. I need to be able to compare two dates and get the number of months that they are apart. The datetime module is a daily-frequency data type. ...
3
by: Nick Allen | last post by:
After using ndiff from difflib, the function restore would return the sequence that generated the delta. Unfortunately, restore does not do the same for unified_diff. I do not see any similar...
9
by: Ching-Lung | last post by:
Hi all, I try to create a tool to check the delta (diff) of 2 binaries and create the delta binary. I use binary formatter (serialization) to create the delta binary. It works fine but the...
6
by: Igor Shevchenko | last post by:
Hi! Suppose I have "pg_dump -s" of two pg installs, one is "dev", another is "production". Their schemas don't differ too much, and I want to get a "diff -u"-like schema diff so I can quickly...
4
by: Andreas Kasparek | last post by:
Hola! I'm preparing my master thesis about a XML Merge Tool implementation and was wondering if there is any open standard for XML diff regarding topics like: - is a diff result computed on...
3
by: AirYT | last post by:
Hello, I'm looking for an implementation for diffing 2 (text) files and spitting out the output using php only. i would like to extend this to use ftp to diff two files on two ftp servers, or...
4
by: Shug | last post by:
Hi, We're reformatting a lot of our project code using the excellent uncrustify beautifier. However, to gain confidence that it really is only changing whitespace (forget { } issues for just...
6
by: Aaron Gray | last post by:
Hi, I am working on an HTML WYSISYG Wiki and need to display a diff page like WikiPedia does if two people edit a file at the same time to give the second user the diff. Basically with additions...
2
by: akshaycjoshi | last post by:
I have got one tree tree view control.I have three levels in it. Example- Root1 ------->child1 ------->child2 ---------------->child1 ---------------->child2 ------->child3 Root2
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.