Determine System.Type of a class

W

Wasim Akram

In C# I can use
Type t = typeof(MyClass);

Whats the equivalent in VB?
It seems that typeof operator in VB.NET works only with objects not classes.

-
wa
 
K

Ken Tucker [MVP]

Hi,

Dim t as type = GetType(myclass)

Ken
----------------------
In C# I can use
Type t = typeof(MyClass);

Whats the equivalent in VB?
It seems that typeof operator in VB.NET works only with objects not classes.

-
wa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top