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

Data types

These are also famous as compliant value types, simple value types, and basic value types. I call these data types because of their power to define the nature of values. The following table contains all value types:

 

We can prove the values mentioned in the preceding table with the help of the following code snippet:

//Code is omitted 
public static void Display() 
{ 
WriteLine("Table :: Data Types"); 
var dataTypes = DataTypes(); 
WriteLine(RepeatIt('\u2500', 100)); 
WriteLine("{0,-10} {1,-20} {2,-50} {3,-5}", "Type", "CLR Type", "Range", "Default Value"); 
WriteLine(RepeatIt('\u2500', 100)); 
foreach (var dataType in dataTypes) 
WriteLine("{0,-10} {1,-20} {2,-50} {3,-5}", dataType.Type, dataType.CLRType, dataType.Range, 
dataType.DefaultValue); 
WriteLine(RepeatIt('\u2500', 100)); 
} 
//Code is omitted 

In the preceding code, we are displaying maximum and minimum values of data types, which produces the following output:

主站蜘蛛池模板: 江津市| 华安县| 大方县| 漠河县| 乌审旗| 鸡东县| 温泉县| 玉树县| 颍上县| 淅川县| 康定县| 象州县| 获嘉县| 建瓯市| 饶平县| 曲阳县| 六枝特区| 水富县| 友谊县| 永春县| 华容县| 静宁县| 临汾市| 苏州市| 任丘市| 丹阳市| 新郑市| 云梦县| 常熟市| 东城区| 交口县| 牙克石市| 清原| 台北市| 扎赉特旗| 台东县| 理塘县| 沙洋县| 夏邑县| 聂荣县| 合山市|