Cross Langauge Interoperablity and Cross Langauge Integration
What is difference between Cross Langauge Interoperablity and Cross Langauge Integration?
How to achieve this??
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Posted Oct 16, 2010, 12:41 AM
The common language runtime provides the necessary foundation for language interoperability by specifying and enforcing a Common Type System and by providing metadata. Because all languages targeting the runtime follow the Common Type System rules for defining and using types, the usage of types is consistent across languages. Metadata enables language interoperability by defining a uniform mechanism for storing and retrieving information about types. Compilers store type information as metadata, and the common language runtime uses this information to provide services during execution; the runtime can manage the execution of multilanguage applications because all type information is stored and retrieved in the same way, regardless of the language the code was written in.
A class written in C# can be inherited by a program written in VB.NET. It is called as Cross Language Inheritance.
If an exception raised in C# it can be handled in VB.NET. It is called as Cross Language Exception Handling. Cross Language Interoperability is only possible due to CLS(Common Language Specification) and CLR(Common Language Runtime).
http://msdn.microsoft.com/en-us/library/a2c7tshk.aspx
http://msdn.microsoft.com/en-us/library/bhc3fa7f.aspx
http://www.codeguru.com/forum/showthread.php?t=369066
http://www.dotnetspider.com/resources/33090-Cross-Language-Interoperability-NET.aspx
Common Language Integration
1) If you are mixing VB.NET and C# code in a same project then its called as Cross-Language Integration.
http://www.dotnetspider.com/forum/116428-cross-language-integration.aspx
http://pietschsoft.com/post/2006/03/30/ASPNET-20-Use-VBNET-and-C-within-the-App_Code-folder.aspx
http://tirania.org/blog/archive/2005/May-17.html
Handling Language Interoperability with the Microsoft .NET Framework
Hope this helps you.