public LanguageManager() { holder = new LMap(); ReadAllFiles(); }
/// <summary> /// Adds new elements to the end of an array, and returns the new length /// </summary> /// <param name="target">The target list to apply this method on.</param> /// <param name="elements">The elements to add</param> /// <returns>The new length</returns> public int Add(LObject target, params object[] elements) { if (elements == null || elements.Length == 0) return 0; // Add var list = target.GetValue() as IList; if (list == null) return 0; var table = target as LTable; var map = new LMap(new Dictionary<string, object>()); var ndx = 0; foreach(var field in table.Fields) { var val = elements[ndx]; map.Value[field] = val; ndx++; } list.Add(map); return list.Count; }