Wednesday, April 1, 2009

Nullable Types in .net

C#

DataTime? dtfromdt= null;

int? intCount = null;

bool? bStatus = null;

VB.NET



Dim dtfromdt As Nullable(Of DateTime)

Dim intCount As Nullable(Of Integer)

Dim bStatus As Nullable(Of Boolean)

No comments:

Post a Comment