官术网_书友最值得收藏!

Common Type System

As there is a layer of abstraction between the language and the framework, it is evident that each of the language literals are mapped to specific CLR types. For instance, the integer of VB.NET is the same as the int of C#, as both of them point to the same type, System.Int32. It is always preferred to use language types since the compiler takes care of the mapping of types. The CTS system is built as a hierarchy of types with System.Object at its apex. The Common Type System (CTS) is divided into two kinds, one of which is value types, which are primitives that are derived from System.ValueTypes, while anything other than that is a reference type. The value types are treated differently to the reference types. This is because while allocation of memory value types are created on a thread stack during execution, reference types are always created on the heap.

主站蜘蛛池模板: 德安县| 喀喇| 台东县| 兴义市| 白银市| 会东县| 河池市| 思南县| 海口市| 金沙县| 嘉义县| 民丰县| 麻城市| 崇州市| 贵德县| 南靖县| 沁阳市| 博爱县| 沙坪坝区| 随州市| 垫江县| 都江堰市| 九台市| 平凉市| 合川市| 济源市| 平阴县| 隆安县| 泊头市| 斗六市| 包头市| 墨玉县| 武夷山市| 芷江| 大邑县| 阿克| 大新县| 永泰县| 桑植县| 鲁山县| 民丰县|