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

Define web.config in .net?

823


What is ashx file in asp.net?

735


Which is faster viewbag or viewdata?

733


Which data type does the rangevalidator control support?

705


What is web api vs wcf?

768


What is the use of data set in asp.net?

668


What is the difference between dynamic SGA and static SGA?

778


What are the 3 types of web?

666


Which type if caching will be used if we want to cache the portion of a page instead of whole page?

675


What is the difference between ASP Session State and ASP.Net Session State?

776


What is cookies in asp net?

710


Explain different types of validators in asp.net?

708


What is app_code folder in asp net?

734


What are cao and sao.

723


What are the ways to sending the data in ASP.NET page?

738