VB and C# app

M

Mike

I just finished up a web app written in VB.NET, now I'm working on Phase 2
of the same app but I want to code it in C# to get some more experience with
C#. Will a VB.NET app work with a C# app?
 
J

Jon Skeet [C# MVP]

Mike said:
I just finished up a web app written in VB.NET, now I'm working on Phase 2
of the same app but I want to code it in C# to get some more experience with
C#. Will a VB.NET app work with a C# app?

It depends on what you mean by "work with". If you've got a library
assembly written in VB.NET you can certainly use that in a C# app.
 
N

Nicholas Paldino [.NET/C# MVP]

Mike,

Yes, it will. Basically, they both compile down to IL, which is then
converted and executed by the CLR. All you have to do is add a reference to
your VB.NET library from your C# project, and you will be fine.

Hope this helps.
 
G

Guest

-----Original Message-----
I just finished up a web app written in VB.NET, now I'm working on Phase 2
of the same app but I want to code it in C# to get some more experience with
C#. Will a VB.NET app work with a C# app?

Isn't there a converter to change VB into C#?
 
J

Jay Miller

As was already mentioned you can certainly reference a VB.NET library from a
C# library, and vice versa. What you cannot do, however, is mix VB.NET and
C# within the same library (project).

-Jay
 

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