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 [3]  | 

 

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
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
<April 2007>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345
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: