EvalToInteger, 'gumdrops', and More
by in Coded Smorgasbord on 2012-04-09"I recently found this while going over some code in a Util library used by my project," Ian writes, "clearly, this method makes sure the job gets done."
public static int EvalToInteger(string statement) { string s = EvalToString(statement); return int.Parse(s.ToString()); }