The question quite an older and often asked around, i have similar questions here but my question is a bit more specific.
Q1. Is it legal to mix C# and VB.Net code in ASP.Net Web Application? Will it work or not? If it works how it may be done? Any sample will be good.
Q2. If there are any repercussions of mixing C# and VB.Net code then please do share those as well.
I have a web project that is coded in VB.Net. I am working on one module of the project. and i want to code in C#. I cant convert the whole project to C# because i am not the only one working on the project. However, the module i intend to build , i want to have that built in C#.
I have heard that in case of web projects, if we code part in C# and part in VB.net then there are problems compiling the project to a dll. Is that true? if yes then what is the solution.
Also, if i am building a dynamic link library in .Net then can i mix C# and Vb.Net code?