| 1. |
How is it possible for .NET to support many languages? |
|
Answer» The .NET application is said to be multilingual because we can deploy it in different language, the language it supports are visual basics, .NET, C#, J# which compiled to a command Intermediate language the Java byte code which is developed by Microsoft is a low-level language with simple syntax which is easily be translated into native machine code
CLR helps .NET framework to be multilingual, the code running under CLR is termed as managed code, the main task of CLR is to convert compiled code into native code, it has different compilers some of them are VB .NET, C#, C++, JScript or any third party compiler such as COBOL. It simply means that you can CREATE pages in different languages (like C#, VB .NET, J# etc.) and once all of these pages are compiled they all can be used in a single application
CTS is Common Type System it is used when we are using the managing types, it is BASICALLY used to handle the data types. .NET have many languages and each language is having many other data types one language data types cannot be used in other languages, so in that case, we use the CTS Example: we have the application in C# which is having the data type of int and there is another data type of integer in VB.NET, them CTS helps in converting the integer into the int32 structure.
It is Common Language Specification, it has developed certain rules which everyone used to follow like if we have CREATED the code for the multiple inheritances in C++ and if use that code in c# and it will not compile since multiple INHERITANCE is not ALLOWED in C# also it makes C# a case sensitive members of the same class cannot have the same name like Add() and add() they consider as different function. |
|