why am I getting squiggly blue?

  • Thread starter Thread starter Amanda
  • Start date Start date
A

Amanda

On .Friday and .Saturady and .Sunday in thie followign if statement
(The code is form deitel book; I am writing the same code on my own)

if ( dropOffDate.DayOfWeek == DayOfWeek.Friday ||
dropOffDate.DayOfWeek == DayOfWeek.Saturday || dropOffDate.DayOfWeek ==
DayOfWeek.Sunday)
 
If dropOffDate is defined as DateTime it compiles correctly on my system, no
squigly anything.

Regards,
John
 
Ensure you have:

using System;

At the top. The DayOfWeek enum is in the System namespace. You could
also just add the word System. infront of DayOfWeek.

Kelly S. Elias
Webmaster
DevDistrict - C# Code Library
http://devdistrict.com
 
Back
Top