Can i have both C# and vb.net code in same assembly?how?

Answer Posted / lily antony

Yes you can add C# and VB.Net code in the same asssembly.
For that add a new item to the project.
Give the name of the file as Class1.vb if you want to add a
vb code and Class1.cs if you want to add C# code.

When you compile the project it will compile to a single
assembly.
The language does not matter in the end since everthing
will be compile to MSIL.

Is This Answer Correct ?    10 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is Difference between Production Serves and Development Servers? And Suppose, m adding/deleting C# file in a project based on the Specific Requirement. These Files are Automatically updated in Production Servers? So Which tool is needed to do This One?

1505


What is recordset asp?

542


What is asp net application object?

536


How would you enable impersonation in the web.config file?

545


How ASP.NET page works?

677






What is a user session?

500


What do you understand from custom control?

607


What does postback mean?

536


Why asp.net is used?

559


What kind of data we can store in viewstate?

577


Describe the application event handlers in ASP.NET?

549


What is base class of .net?

538


What is the difference between CLICK and MOUSE DOWN Event ?

586


What are directives in asp.net? List down all the important directives.

500


What is the difference between sealed vs static class?

577