6

When the previous developer doesn't appear to know what casting is...

var foo = Convert.ToBoolean(objDictionary["someKey"].ToString());

Comments
  • 0
    I... Have done such things before.

    "get value from dictionary. Ah, it needs to be a boolean. No problem, just surround it with Convert,it'll work"
Add Comment