.Net Common Language Specifications (CLS):

Started by sukishan, Jul 11, 2009, 03:09 PM

Previous topic - Next topic

sukishan

.Net Common Language Specifications (CLS):

In an object-oriented environment, everything is considered as an object. (This point is explained in this article and the more advanced features are explained in other articles.) You create a template for an object (this is called the class file), and this class file is used to create multiple objects.

TIP: Consider a Rectangle. You may want to create many Rectangle in your lifetime; but each Rectangle will have certain characteristics and certain functions. For example, each rectangle will have a specific width and color. So now, suppose your friend also wants to create a Rectangle. Why reinvent the Rectangle? You can create a common template and share it with others.

They create the Rectangle based on your template. This is the heart of object-oriented programming?the template is the class file, and the Rectangle is the objects built from that class. Once you have created an object, your object needs to communicate with many other Objects.

   Even if it is created in another .NET language doesn?t matter, because each language follows the rules of the CLS. The CLS defines the necessary things as common variable types (this is called the Common Type System CTS ), common visibility like when and where can one see these variables, common method specifications, and so on. It doesn?t have one rule which tells how C# composes its objects and another rule tells how VB .Net does the same thing .

To steal a phrase, there is now ?One rule to bind them all.? One thing to note here is that the CLS simply provides the bare rules. Languages can adhere to their own specification. In this case, the actual compilers do not need to be as powerful as those that support the full CLS.
A good beginning makes a good ending

alenfort

CLS - Common Language Specification is a set of basic language functions. NET language needs to develop applications and services that are compatible. Net framework. When the written communication between the different objects. NET language of the complaint, the function of these objects must be open to all languages. Common Language Specification  for interoperability between applications, to ensure the completion, regardless of language used to create applications.

dhoni

in this .net comman language should be used with the main language
with that the language should be able to specifprogramy in main