private Injection FillOriginalText(XDocument mergedDefDoc, Injection injection) { string originalValue = DefWorker.GetDefFieldValue(mergedDefDoc, injection.DefType, injection.DefPathParts); injection.Original = originalValue; return(injection); }
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); } } }