0

I heard that it's possible to import a c# file and use it's functions in a vb.net application? I have a C# file with a lot of functions, that I want to use, however, I don't want to convert it to vb.net (would take time). Is it possible? Thanks. HOw?

2
  • Is it a DLL (Class Library)? Then simply add it as a reference to your project and add the Imports xxx statement to your code. Commented Jul 7, 2013 at 20:43
  • When you compile a class it is transformed into MSIL (Microsoft Intermediate Language). Whether it's C# or VB.NET they are identical at this stage. Commented Jul 7, 2013 at 20:48

1 Answer 1

2

Compile it, and reference the DLL.

Sign up to request clarification or add additional context in comments.

1 Comment

See "Project-to-Project References": Managing Project References

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.