public static Type GetTypeFor(PropTreeType type) { switch (type) { case PropTreeType.Bool: return(typeof(bool)); case PropTreeType.Dictionary: case PropTreeType.List: return(typeof(Dictionary <string, FactorioPropertyTree>)); case PropTreeType.None: return(null); case PropTreeType.Number: return(typeof(double)); case PropTreeType.String: return(typeof(string)); } return(null); }
private FactorioPropertyTree(PropTreeType type, object content) { PropertyTreeType = type; Content = content; }