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

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:

主站蜘蛛池模板: 务川| 衡东县| 洛阳市| 会理县| 富民县| 沂南县| 辽阳市| 丰原市| 张家界市| 云安县| 农安县| 石渠县| 苍南县| 甘孜县| 成都市| 连山| 许昌市| 资阳市| 开鲁县| 固镇县| 兴义市| 嘉黎县| 湾仔区| 乌海市| 新昌县| 连平县| 清镇市| 永靖县| 大名县| 贵定县| 循化| 蕉岭县| 绵竹市| 忻城县| 黄平县| 汝城县| 蕲春县| 泰安市| 繁昌县| 桓仁| 新巴尔虎左旗|