Click here to Skip to main content
15,886,026 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is DOTNET provides a common API to all languages ?
Posted
Comments
Sandeep Mewara 28-Apr-11 9:51am    
Can you be a little less cryptic and be a little elaborate?

Thanks.

The framework provides a common runtime to many languages - see http://www.dotnetpowered.com/languages.aspx[^].
 
Share this answer
 
Yes, that was one of .NET's core design goals. Microsoft developed an open spec called Common Language Infrastructure (CLI) and the .NET framework (in particular the CLR) is a specific implementation of the CLI. Mono is also a CLI implementation (from a different vendor). The core idea is that all CLI languages can use a common API and can easily interop with each other. Practically speaking, not all languages implement all CLI features, so eventually there are exceptions where language interop may not be smooth. To work around this, there is a sub set of the CLI called the CLS - Common Language Specification. CLS compliant languages must implement the CLS (plus any other CLI features they want to). As long as a CLS compliant language uses only CLS complaint features, then it can smoothly interop with any other CLS compliant language. VB.NET and C# are both CLS compliant languages.
 
Share this answer
 
Comments
Albin Abel 28-Apr-11 11:23am    
Good Answer. My 5
Nish Nishant 28-Apr-11 11:24am    
Thanks!
Yes of course. For all .NET languages.

—SA
 
Share this answer
 
Comments
itsmecoder 29-Apr-11 1:40am    
Thanks SAKryukov
Sergey Alexandrovich Kryukov 29-Apr-11 2:35am    
You're welcome, Wincy.
Will you now formally accept this answer (green button)?
--SA
If by all you mean non-.Net supported languages, then no. They will have to adhere to their capabilities to use something that is written in a .Net dll.

If your do not care if it is API or anything else, then yes: webservice/WCF service.

If you mean something else, explain it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900