Classes

E

et

Can a class that's written in c# be used in an asp.net application that uses
vb? We have a lot of classes written by another programmer in c# that I
don't really want to have to re-write for the vb asp.net classes, yet in a
sample vb program that I tried it does not recognize the class written in
c#.


Thank you for your help.
 
W

Wouter van Vugt

Hi,

yes it can, quite easily ( I think you're talking about VB.NET??).
Just compile your VB.NET code to an assembly and link that from your C#
application.

Grtz, Wouter
 
E

et

Thanks. What do you mean by compile to an assembly, do you mean compile the
c# program to create a dll, then reference the dll from my vb app?
 

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