WTF: November 09

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

                }

Add comment

  Country flag


  • Comment
  • Preview
Loading