system.nullable
Using Nullable Data Types with C#
Submitted by Ben Hodson on Mon, 11/10/2008 - 22:42
By default, the built-in base data types in C# do not allow a value of null. For instance, if you did this:
// this will not compile because int cannot be set to nullint iCount = null;
This will not compile. You will the compiler error: Cannot convert null to 'int' because it is a non-nullable value type.
Popular Articles
Last viewed:
- C# Free Component to Generate PDF - Convert HTML to PDF
- Clustered Index vs. Non-Clustered Index in SQL Server
- Getting Started with Microsoft Chart Controls for ASP.NET 3.5
- GridView ObjectDataSource LINQ Paging and Sorting
- Data Access Layer using SqlDataReader and C#
- Disable Button on Submit (Prevent multiple submits)

Recent comments
14 hours 28 min ago
1 day 14 hours ago
3 days 15 hours ago
4 days 4 hours ago
4 days 15 hours ago
4 days 21 hours ago
5 days 1 hour ago
1 week 22 hours ago
1 week 1 day ago
1 week 4 days ago