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.

4 thoughts on “TypeOf VB.NET vs C#

  1. 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#.

Leave a Reply to M.H.Khan Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s