Thursday February 11th

Wednesday February 10th

When string.ToLower() is Evil

Did you know how evil string.ToLower() can sometimes be? See an example when string.ToLower() is definitely not an option.

3 comments

Anyone else catch the irony in the fact that the "foobar-ish" placeholder value had a capital letter in it (i.e.: it would never eval to true anyway)?

if (val.ToLower() == "someValue")

Yes, I still got the point, but the irony is delicious. :D

BTW, why does the smiley interpreter think a quote followed by a close parenthesis is a wink?

Other than that, there's no actual tests to show the big improvement.
Unless you're in a tight time critical loop - I'm thinking it's not worth it . :)

Commenting on Stories is limited for now and will open up to those recommended by the community. Learn how
Loading DotNetKicks...
brought to you by the Kicks Network