TypeOf VB.NET vs C##

If you are Microsoft, why do you create a function "TypeOf" that has totally differnet applications in VB and C#?

Typeof in C# is like GetType in VB, where VB uses TypeOf to see if 2 types are the same or check for interface implementation.

Kinda dumb.

Categories: Programming | .Net | C# | VB.Net
Friday, April 06, 2007 8:59:58 AM (Central Daylight Time, UTC-05:00) #    Comments [4]  | 

 

Saturday, April 07, 2007 7:23:38 AM (Central Daylight Time, UTC-05:00)
Yeah, just as dumb as VB.NET itself.
Wednesday, May 16, 2007 7:48:19 AM (Central Daylight Time, UTC-05:00)
Because they are different languages created by different teams?

'typeof' is part of the syntax not the BCL.


As much as I dislike VB.Net you can't really complain about it having a different syntax than C#, if it didn't then it would be C#.
AndyJ
Wednesday, June 04, 2008 5:55:58 AM (Central Daylight Time, UTC-05:00)
WT IS VBOK IN VB.NET?
radha
Tuesday, March 30, 2010 10:25:18 AM (Central Daylight Time, UTC-05:00)
VBOK is VB OK
which is available since classic VB5, VB6

which is a enum to have OK button over a messagebox
Name
E-mail
(will show your gravatar icon)
Home page

Comment (HTML not allowed)  

Enter the code shown (prevents robots):

Live Comment Preview
All content © 2010, Christopher May, Inc
Open Job Positions
On this page
Google Ads
This site
Calendar
<September 2010>
SunMonTueWedThuFriSat
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789
Archives
Sitemap
Blogroll OPML
Disclaimer

Powered by: newtelligence dasBlog 2.3.9074.18820

The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

Send mail to the author(s) E-mail

Theme design by Jelle Druyts


Pick a theme: