public static MathElement build(string str) { MathElement element = new MathElement(); try { element = JsonConvert.DeserializeObject <MathElement>("{" + str + "}"); } catch (System.Exception ex) { element = null; } return(element); }
public static MathElement build(string str) { MathElement element = new MathElement(); try { element = JsonConvert.DeserializeObject<MathElement>("{"+str+"}"); } catch (System.Exception ex) { element = null; } return element; }