Basic Question on code diff between vb.NET and C#

G

Guest

Hello Fellows,

Can you let me know how do i convert the below VB.NET piece of code into c#?

Dim targetTypes(0) as Type
targetTypes(0) = GetType(Order)

Thanks :)
 
G

Guest

Thanks Mattias...
ur reply is more classy than using the below 2 lines..

Type[] targetTypes = new Type[0];
targetTypes[0] = System.Type.GetType("Order");
 

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