public void LoadFromFile_DefInject(FileInfo file, Type defType) { DefInjectionPackage defInjectionPackage = (from di in this.defInjections where di.defType == defType select di).FirstOrDefault(); if (defInjectionPackage == null) { defInjectionPackage = new DefInjectionPackage(defType); this.defInjections.Add(defInjectionPackage); } defInjectionPackage.AddDataFromFile(file); }
public void LoadFromFile_DefInject(VirtualFile file, Type defType) { DefInjectionPackage defInjectionPackage = defInjections.Where((DefInjectionPackage di) => di.defType == defType).FirstOrDefault(); if (defInjectionPackage == null) { defInjectionPackage = new DefInjectionPackage(defType); defInjections.Add(defInjectionPackage); } defInjectionPackage.AddDataFromFile(file, out var xmlParseError); if (xmlParseError) { anyDefInjectionsXmlParseError = true; lastDefInjectionsXmlParseErrorInFile = file.Name; } }
public void LoadFromFile_DefInject(FileInfo file, Type defType) { DefInjectionPackage defInjectionPackage = (from di in defInjections where di.defType == defType select di).FirstOrDefault(); if (defInjectionPackage == null) { defInjectionPackage = new DefInjectionPackage(defType); defInjections.Add(defInjectionPackage); } defInjectionPackage.AddDataFromFile(file, out bool xmlParseError); if (xmlParseError) { anyDefInjectionsXmlParseError = true; lastDefInjectionsXmlParseErrorInFile = file.Name; } }
public void LoadFromFile_DefInject(FileInfo file, Type defType) { DefInjectionPackage defInjectionPackage = (from di in this.defInjections where di.defType == defType select di).FirstOrDefault <DefInjectionPackage>(); if (defInjectionPackage == null) { defInjectionPackage = new DefInjectionPackage(defType); this.defInjections.Add(defInjectionPackage); } bool flag; defInjectionPackage.AddDataFromFile(file, out flag); if (flag) { this.anyDefInjectionsXmlParseError = true; this.lastDefInjectionsXmlParseErrorInFile = file.Name; } }
private static bool <DoSaveTranslationReport> m__0(DefInjectionPackage x) { return(x.usedOldRepSyntax); }