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

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.

主站蜘蛛池模板: 平陆县| 库尔勒市| 嵩明县| 长岭县| 宁南县| 枞阳县| 龙川县| 类乌齐县| 兴和县| 汝南县| 隆子县| 大宁县| 德安县| 云安县| 米泉市| 堆龙德庆县| 信丰县| 夏津县| 祁东县| 澄迈县| 防城港市| 荥经县| 筠连县| 汉中市| 黄陵县| 白山市| 林西县| 彩票| 台北市| 中西区| 利津县| 长岛县| 石家庄市| 定日县| 青川县| 周宁县| 福贡县| 柘荣县| 丹寨县| 西乌珠穆沁旗| 阳东县|