.NET mix C# with vb.NET

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

it is accepted to combine in one system both C# projects and vb.NET projects?

if i have a system that wrote in vb.net and i'm C#-er, can i continue to
develop the system with C#?

thanks
koby
 
koby said:
it is accepted to combine in one system both C# projects and vb.NET projects?

if i have a system that wrote in vb.net and i'm C#-er, can i continue to
develop the system with C#?

It is technically possible.

The problem is the maintenance.

If your team is a big team and the application
is cleanly divided in layers so you have 5 people
working on the presentation layer, 2 people on
the business logic layer and 1 working on the
data access layer, then I can not see a
problem using VB.NET in PL and C# in BLL & DAL.

I can see a big problem if half the code behinds
in the PL is in VB.NET and the other half in C#.

I can see a problem if future maintenance is going
to be a 1 person job.

So think at the maintenance for the next 10 years
before going multi lingual.

Arne
 
You can combine languages in the same solution but not in the same project.

It's quite acceptable for example to create an application in VB that
uses DLL's written in C#

--
Bob Powell [MVP]
Visual C#, System.Drawing

Ramuseco Limited .NET consulting
http://www.ramuseco.com

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Yep. In ASP.NET 2.0 you can even have different pages in the same project
written in different languages.

Peter
 
Bob said:
You can combine languages in the same solution but not in the same project.

It's quite acceptable for example to create an application in VB that
uses DLL's written in C#

You can build one DLL from both C# and VB.NET source - it is just not
supported in Visual Studio.

Arne
 

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

Back
Top