Visual Studio -> 2008/2010
Open New Project.. Select Class Library of Visual Basic Project..
Make a Function..
Class1
Public Function Add(ByVal i as Integer, ByVal j as Integer) As Long
return i + j
End Function
End Class
(Check the Snapshot above)
Now Build the Project by pressing ALT+SHIFT+B,, and check the destination of this project, There must one one dll created in the bin-> debug folder..
Now Open another Project.. Select Console Application of C# Project...
On right side, there is a solution explorer... Click on Add Reference.. New window open,, Select Browse and then go to the destination of Class Library of Visual Basic Project.. and Add the file of dll from bin-> debug folder as said above..
Now In Main Function...
static void Main(string[] args)
{
ClassLibrary1.Class1 obj = new ClassLibrary1.Class1();
Console.WriteLine( obj.Add(3, 4));
}
This above example shows how a program written in VB.net does'nt make any difference due to the CTS, C# easily understand the code of VB.net due the CTS..