WTF: November 09

by alski 25. November 2009 16:50

In a “QI” format this time. Spot the problem in the following code.

1 point for the correct problem. -5 points for going for the obvious mistake.

2 points for the correct solution.

 

P.S. No its not my code 

 

                [Flags()]
                public enum EntityComparisonMode
                {
                                /// <summary>
                                /// All values are converted to System.String and tested using [StringComparison.Ordinal]
                                /// </summary>
                                CaseSensative = 1,
                                 /// <summary>
                                /// All values are converted to System.String and tested using [StringComparison.OrdinalIgnoreCase]
                                /// </summary>
                                CaseInsensative  = CaseSensative << 1,
                                 /// <summary>
                                /// NULL and String.Empty values will be equal.
                                /// </summary>
                                IgnoreNull = CaseInsensative << 1

                }

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Code

Comments

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen

RecentComments

Comment RSS