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

Answers were Sorted based on User's Feedback



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

Answer / ashok

yes

Is This Answer Correct ?    9 Yes 2 No

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

Answer / 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

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

Answer / prashanthreddy

Create C# class file and vb class file separately. Compile
them separately as modules and then finally add them to your
assembly.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / sanjeev

Yes, as Antony said, we can do the same but VB files will
not be available in any C# application where we are using
that class assembly.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / basavraj

Yes We can add same both code one Assembly .Bcoz Shared
Assembly is Same Application

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

What is redirectpermanent in asp.net?

0 Answers  


You need to be able to retrieve data from DataSet object that has four DataTable objects. There are currently UniqueConstraint and ForeignKeyConstraint Object on the DataTable objects to enforce the data rules. You find that you can retrieve the data from the individual DataTable objects, but you are not able to retrieve the data from the combination of DataTable objects in a Parent/Child manner. What should you do to able to retrieve the data in a Parent/Child manner? a) Set the EnforceParentChild parameter of the DataSet to True. b) Set the EnforceRelation parameter of the Relations collection to True. c) Add DataRelation objects to the Relations Collection to make the DataSet present the data in Parent/Child manner. d) Add a primary key and a foreign key to each of the DataTable objects that should present the data in a Parent/Child manner.

1 Answers   Syntax Softtech,


What is Bundling and Minification in MVC?

0 Answers   HCL,


How many types of cookies are there in asp.net?

0 Answers  


How do you initiate validation on the server manually? What are two situations when you might you want to do that?

0 Answers  






What is the difference between system.stringbuilder and system.string

0 Answers  


What is cached data phone?

0 Answers  


What are the types of validation in asp net?

0 Answers  


What is the main differences between asp and asp.net?

0 Answers  


What is routing in MVC?

0 Answers   Infosys,


Suppose i create one application in vs 2008 and it is running in the latest version of IE,will it run in netscape and other browsers with low version?

2 Answers   Wipro,


What namespace does the Web page belong in the .NET Framework class hierarchy?

3 Answers   Siebel Systems,


Categories