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

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.

主站蜘蛛池模板: 湘西| 砚山县| 天祝| 城固县| 南丰县| 乌兰县| 灵璧县| 浠水县| 紫阳县| 呼图壁县| 桂林市| 白河县| 通州区| 马山县| 米易县| 青海省| 绥化市| 方山县| 武安市| 克什克腾旗| 荆门市| 龙州县| 旺苍县| 措美县| 合肥市| 苏尼特左旗| 康保县| 吴旗县| 腾冲县| 平南县| 陆川县| 车险| 府谷县| 海宁市| 教育| 四川省| 新民市| 瑞丽市| 张家口市| 平远县| 彭泽县|