VB and C# app

  • Thread starter Thread starter Mike
  • Start date Start date
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?
 
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.
 
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.
 
-----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#?
 
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
 
Back
Top