public Dictionary <string, List <ResxObj> > SplitResxMaster(Stream input, bool closeStreamWhenDone = true) { var list = new Dictionary <string, List <ResxObj> >(); foreach (var resxobj in ResxHelper.ReadResxObjectsFromXml(input, true, closeStreamWhenDone)) { if (resxobj.Key.Contains(".")) { var resxfile = resxobj.Key.Substring(0, resxobj.Key.IndexOf('.')); if (!list.ContainsKey(resxfile)) { list.Add(resxfile, new List <ResxObj>()); } list[resxfile].Add(new ResxObj(resxobj.Content, resxobj.Key.Substring(resxobj.Key.IndexOf('.') + 1))); } else { if (!list.ContainsKey("")) { list.Add("", new List <ResxObj>()); } list[""].Add(resxobj); } } return(list); }
public byte[] ConvertToIndexBasedTables(Stream input, bool closeStreamWhenDone = true) { return(ConvertToIndexBasedTables(ResxHelper.ReadResxObjectsFromXml(input, false, closeStreamWhenDone))); }