Ejemplo n.º 1
0
        private Injection FillOriginalText(XDocument mergedDefDoc, Injection injection)
        {
            string originalValue = DefWorker.GetDefFieldValue(mergedDefDoc, injection.DefType, injection.DefPathParts);

            injection.Original = originalValue;
            return(injection);
        }
Ejemplo n.º 2
0
        public IEnumerable <Injection> GenerateByLeafParts(XDocument mergedDefDoc, HashSet <string> leafParts)
        {
            foreach (XElement def in mergedDefDoc.Root.Elements())
            {
                string defType = def.Name.LocalName;
                string defName = DefWorker.GetDefName(def);

                foreach (Injection inj in Traverse(def, leafParts, defType, defName))
                {
                    yield return(inj);
                }
            }
        }