Skip to content

Commit

Permalink
case insentive comparision for BooleanConvert "on"
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Sep 23, 2012
1 parent a8590b9 commit bef790e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -42,7 +42,7 @@ public object Convert(string input, Type destinationType, BindingContext context
}
catch (FormatException)
{
if (destinationType == typeof(bool) && converter.GetType() == typeof(BooleanConverter) && input == "on")
if (destinationType == typeof(bool) && converter.GetType() == typeof(BooleanConverter) && "on".Equals(input, StringComparison.OrdinalIgnoreCase))
{
return true;
}
Expand Down

0 comments on commit bef790e

Please sign in to comment.