public float GetFloat(string key) { string val = dict[key]; try { return(ParsingUtils.ParseFloat(val)); } catch { AddErrorMsg("sbwrongfloatformat", key); return(float.NaN); } }