Posts

Showing posts with the label Understanding Relationship Between CTS and CLS

Understanding Relationship Between CTS and CLS

Image
CTS and CLS are parts of .NET CLR and are responsible for type safety with in the code. Both allow cross language communication and type safety. In this article I would like to expose the relationship between these two. CTS CTS stands for Common Type System. It defines the rules which Common Language Runtime follows when declaring, using, and managing types. The common type system performs the following functions: It enables cross-language integration, type safety, and high-performance code execution. It provides an object-oriented model for implementation of many programming languages. It defines rules that every language must follow which runs under .NET framework. It ensures that objects written in different .NET Languages like C#, VB.NET, F# etc. can interact with each other. CLS CLS stands for Common Language Specification and it is a subset of CTS. It defines a set of rules and restrictions that every language must follow which runs under .NET framework. Th...