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

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.

主站蜘蛛池模板: 荆门市| 怀柔区| 陵水| 黄浦区| 昌邑市| 萨嘎县| 彰化市| 玉溪市| 东兴市| 上犹县| 吉木萨尔县| 鲜城| 宁强县| 浦江县| 凤冈县| 岳普湖县| 宜阳县| 民丰县| 抚松县| 顺平县| 乐平市| 巴青县| 林甸县| 康平县| 铁岭县| 宁蒗| 大连市| 桂林市| 岳阳市| 彭州市| 黔西县| 定结县| 阿克陶县| 沁源县| 辽宁省| 杭锦旗| 莎车县| 延安市| 华池县| 镇雄县| 博湖县|