public IList <object> GetList(string key, bool notNull = false) { if (map.ContainsKey(key)) { return(WUtil.ToList(map[key])); } if (notNull) { return(new List <object>()); } return(null); }
public IList<object> GetList(int index, bool notNull = false) { object value = list[index]; if (value != null) { return WUtil.ToList(value); } if (notNull) { return new List<object>(); } return null; }
public WList(object source) { list = WUtil.ToList(source); if (list == null) list = new List<object>(); }