- Learn C# in 7 days
- Gaurav Aroraa
- 79字
- 2021-07-08 09:51:26
Null type
Nullable types are nothing but an instance of the System.Nullable<T> struct. The nullable type contains the same data range as that of its ValueType but with addition to a null value. Refer to the data type table where int has a range of 2147483648 to 2147483647 but System.Nullable<int> or int? has the same range in addition to null. This means you can do this: int? nullableNum = null;.
For more detail on nullable types, refer to https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/nullable-types/.
推薦閱讀
- 圖解Java數(shù)據(jù)結(jié)構(gòu)與算法(微課視頻版)
- Java程序設(shè)計(jì)與計(jì)算思維
- 深入淺出Windows API程序設(shè)計(jì):編程基礎(chǔ)篇
- Elastic Stack應(yīng)用寶典
- 云計(jì)算通俗講義(第3版)
- 編譯系統(tǒng)透視:圖解編譯原理
- 差分進(jìn)化算法及其高維多目標(biāo)優(yōu)化應(yīng)用
- 零基礎(chǔ)輕松學(xué)SQL Server 2016
- Python深度學(xué)習(xí):基于TensorFlow
- Python Interviews
- C編程技巧:117個(gè)問題解決方案示例
- 單片機(jī)原理及應(yīng)用技術(shù)
- Mastering SciPy
- 分布式數(shù)據(jù)庫HBase案例教程
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程(第二版)