- 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/.
推薦閱讀
- Cocos2D-X權(quán)威指南(第2版)
- C語言程序設(shè)計(jì)案例教程(第2版)
- 測(cè)試驅(qū)動(dòng)開發(fā):入門、實(shí)戰(zhàn)與進(jìn)階
- LabVIEW入門與實(shí)戰(zhàn)開發(fā)100例
- 自己動(dòng)手實(shí)現(xiàn)Lua:虛擬機(jī)、編譯器和標(biāo)準(zhǔn)庫
- Mastering Spring MVC 4
- ASP.NET動(dòng)態(tài)網(wǎng)頁設(shè)計(jì)教程(第三版)
- Designing Hyper-V Solutions
- Learning Selenium Testing Tools(Third Edition)
- Oracle JDeveloper 11gR2 Cookbook
- Unity 5 for Android Essentials
- ServiceNow:Building Powerful Workflows
- 速學(xué)Python:程序設(shè)計(jì)從入門到進(jìn)階
- Unity 2018 Augmented Reality Projects
- Java高手是怎樣煉成的:原理、方法與實(shí)踐