Using C# class in VB.NET..

  • Thread starter Thread starter jahfer
  • Start date Start date
J

jahfer

Hi All

I am working with WebApplications(VB.NET).I have created a class in C#,but I want to use this class in my VB.NET application

How can I do this

With thanks in advance

Jahfer
 
jahfer said:
I am working with WebApplications(VB.NET).I have created a class in
C#,but I want to use this class in my VB.NET application.

How can I do this?

What kind of project is the C# one? It needs to be a class library (or
a web service) in order for you to use it.

If the two projects are in the same solution, just add a reference to
the C# class library project. Otherwise, add a reference to the output
library (.dll) built by the class library project.
 
Compile the C# class into a class library and reference the assembly created
when you compile. You can add a new C# project to the VB.NET solution and
make a project reference, if you desire.

---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
 
Back
Top