tags:

views:

108

answers:

5

Simple yes/no question : Can I call a vb.net function compiled in a vb.net dll from a c# function compiled in its own C# dll? Running in the same application.

+8  A: 

Yes, that shouldn't be a problem.

Eric Minkes
they are not any different...
Pondidum
Just to explain it a little: C#, VB.NET and all others are compiled into IL-Code, the syntax is similar to Assembler. So, no matter in what language the Application/Library was written, it will end up as IL-Code.
Bobby
+4  A: 

Yes ofcourse. You can access the dll and can create objects of classes in the dll and call methods.

Himadri
+10  A: 

Yes you can. The other way round isn't necessarily true because you can do things in C# that aren't CLS Compliant, hence the reason you need to mark C# assemblies with

[assembly:CLSCompliant(true)]
Pete OHanlon
+5  A: 

The whole point of .NET is interoperability. Therefore, all .NET language assemblies should be able to call back and forth to other .NET assemblies, with a few very specific caveats, as noted by Pete.

Mike Hanson
+1  A: 

yes, why because .net is language interoperability.

Surya sasidhar