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
What is the difference between abstract class vs interface? Can give me the real time examples?
From which base class all web forms are inherited?
How to handle errors in Web API?
Can a master page have more than one contentplaceholder?
Define the term Scavenging in Caching?
What is the difference between Classic ASP and ASP.Net?
Is asp.net is a programming language?
How you will manage the state of ASP.NET controls?
To display data in the combo box, prior to setting the Data Source, what kind of property on a Combo Box do you set with a column name?
Any disadvantages in Dataset and in reflection ?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
Is it true that a Web service must be written in .NET or not?
How does the service stream content?
Types of instancing properties and explain each. Tell the difference between multiuse,singleuse and globalmultiuse and which is default ?
Explain about solution explorer window?