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 silverlight and what is the purpose of silverlight?

2 Answers   Cognizant, CTS,


What is virtual directory in asp.net?

0 Answers  


What are the two Layouts supported by a Web form in ASP.NET?

0 Answers   MCN Solutions,


Hi, I am a fresher. i have a problem related to DataGrid . i have a data grid and i have to place a dropdown in the datagrid.and i have to retrieve the values from the database (sqlserver).please tell me any idea about the code.

1 Answers   Lambent,


With out Web.config can we executes the application?

10 Answers   Valtech,






When maintaining session through sql server, what is the impact of read and write operation on session objects?

0 Answers  


what are the new server controls added in Asp.net 2.0?

1 Answers   DOSPL,


Can u able to get the xml document in crystal report if yes how its possible

2 Answers  


What is masterpage?

0 Answers  


SessionState - type of sessionstate and when and how to use it

1 Answers   Syntel,


What are sharepoint pages?

0 Answers  


Explain security types in asp.net?

0 Answers  


Categories