List <IReadContext> IReadContext.ReadList(string path) { List <IReadContext> lst = new List <IReadContext>(); // IReadContext red = this; var json = red.Read(path); JArray obj = (JArray)Newtonsoft.Json.JsonConvert.DeserializeObject(json); for (int i = 0; i < obj.Count; i++) { lst.Add(new ReadContextByJson(obj[i].ToString())); } // return(lst); }
public long ReadToLong(IReadContext r, string key) { return(Convert.ToInt64(r.Read(key))); }
public int ReadToInt(IReadContext r, string key) { return(Conv.ToInt(r.Read(key))); }
public string Read(IReadContext r, string key) { return(r.Read(key)); }
public string Read(string key) { return(rc.Read(key)); }
public long ReadToLong(IReadContext r, string key) { return(r.Read(key).ToInt64()); }
public int ReadToInt(IReadContext r, string key) { return(r.Read(key).ToInt32()); }