- Learn C# in 7 days
- Gaurav Aroraa
- 126字
- 2021-07-08 09:51:25
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:

推薦閱讀
- Functional Python Programming
- Learning Python Web Penetration Testing
- Kali Linux Web Penetration Testing Cookbook
- ASP.NET Core 5.0開發入門與實戰
- 21天學通C++(第6版)
- 微信公眾平臺開發:從零基礎到ThinkPHP5高性能框架實踐
- 響應式Web設計:HTML5和CSS3實戰(第2版)
- R語言數據挖掘:實用項目解析
- UML軟件建模
- Magento 2 Developer's Guide
- Game Development Patterns and Best Practices
- 流程讓管理更高效:流程管理全套方案制作、設計與優化
- Selenium WebDriver自動化測試完全指南
- 物聯網及低功耗藍牙5.x高級開發
- Python實現Web UI自動化測試實戰:Selenium 3/4+unittest/Pytest+GitLab+Jenkins