Nullable Types and Intellisense Bug/Problem

The following issue is as follows:

The variables are defined as:

DateTime? EndTime

DateTime StartTime

The result is a nullable<DateTime> but intellisense does not recognize this.

 

The first image is the compiler error and my first attempt:

clip_image002

 

The following is what is displayed in Intellisense:

clip_image004

 

The following is the correct syntax:

clip_image006

 

 

The pictures seem to lose quality when pasting them in Live Writer.  I’ll have to re-blog in text one day.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s