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;
            }
        }
示例#3
0
        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;
            }
        }
示例#4
0
        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;
            }
        }
示例#5
0
 private static bool <DoSaveTranslationReport> m__0(DefInjectionPackage x)
 {
     return(x.usedOldRepSyntax);
 }