Click here to Skip to main content
15,886,518 members

Articles by jswolf19 (Tip/Trick: 1)

Tip/Trick: 1

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.50

Programming Languages
C#
3 Feb 2011   Updated: 6 Feb 2011   Rating: 4.50/5    Votes: 2   Popularity: 1.35
Licence: CPOL    Views: 3,560     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
If you use the logic from your FlagIsSet function, you can remove half of your tests: DatePartFlags equalFlags = DatePartFlags.Ticks; equalFlags |= (now.Year == then.Year) ? DatePartFlags.Year : 0; equalFlags |= (now.Month == then.Month) ? DatePartFlags.Month : 0; ...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Software Developer
Japan Japan
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.