private static void sLsRSGwrU3([In] FileInfo obj0) { CompilerResults compilerResults = CompilingService.Compile(obj0.FullName, false); if (compilerResults.Errors.HasErrors) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type)null, compilerResults.Errors); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } else { bool flag = false; foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, obj0); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); flag = true; } } if (flag) { return; } ComponentRecord componentRecord1 = new ComponentRecord(Guid.Empty, ComponentType.Unknown, obj0.Name, "", obj0, (Type)null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(obj0.FullName, -1, -1, "dfdfs", "fdsdfs") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord1); StrategyComponentManager.H13R1k6g2K(componentRecord1); } }
private static void faQRIM6nIU([In] FileInfo[] obj0) { string source = ""; Dictionary <string, FileInfo> dictionary = new Dictionary <string, FileInfo>(); List <FileInfo> list1 = new List <FileInfo>(); List <FileInfo> list2 = new List <FileInfo>(); int num = 1; foreach (FileInfo fileInfo in obj0) { if (StrategyComponentManager.yNoRLNTZ2P.Contains(fileInfo.Name)) { StreamReader streamReader = new StreamReader(fileInfo.FullName); string index = num.ToString(); dictionary[index] = fileInfo; list1.Add(fileInfo); source = source + index + Environment.NewLine + Environment.NewLine + streamReader.ReadToEnd() + Environment.NewLine + Environment.NewLine; ++num; streamReader.Close(); } else { list2.Add(fileInfo); } } CompilerResults compilerResults = CompilingService.CompileSource(source); if (compilerResults.Errors.HasErrors) { foreach (FileInfo fileInfo in obj0) { StrategyComponentManager.sLsRSGwrU3(fileInfo); } } else { foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { if (type.IsPublic) { string index = type.FullName.Substring(0, type.FullName.IndexOf("")); FileInfo fileInfo = dictionary[index]; list1.Remove(fileInfo); ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, fileInfo); if (componentRecord != null) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } } } foreach (FileInfo file in list1) { ComponentRecord componentRecord = new ComponentRecord(Guid.Empty, ComponentType.Unknown, file.Name, "", file, (Type)null, new CompilerErrorCollection(new CompilerError[1] { new CompilerError(file.FullName, -1, -1, "fddfs", "trtr") })); StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord); StrategyComponentManager.H13R1k6g2K(componentRecord); } foreach (FileInfo fileInfo in list2) { StrategyComponentManager.sLsRSGwrU3(fileInfo); } } }
public static bool RebuildComponent(FileInfo file) { ComponentRecord[] records = StrategyComponentManager.wcrRFbhwry.FindRecords(file); foreach (ComponentRecord componentRecord in records) { componentRecord.HrjA5j3PaA(new CompilerErrorCollection()); StrategyComponentManager.gLhRsqD2VZ.Remove((object)componentRecord); } CompilerResults compilerResults = CompilingService.Compile(file.FullName, false); if (compilerResults.Errors.HasErrors) { foreach (ComponentRecord componentRecord in records) { componentRecord.HrjA5j3PaA(compilerResults.Errors); StrategyComponentManager.TXQRKdObj1(componentRecord); } return(false); } else { ArrayList arrayList1 = new ArrayList(); foreach (Type type in compilerResults.CompiledAssembly.GetTypes()) { ComponentRecord componentRecord = StrategyComponentManager.cN2R9Xa8LN(type, file); if (componentRecord != null) { arrayList1.Add((object)componentRecord); } } ArrayList arrayList2 = new ArrayList((ICollection)records); foreach (ComponentRecord componentRecord1 in arrayList1) { bool flag = false; foreach (ComponentRecord componentRecord2 in arrayList2) { if (componentRecord2.GUID == componentRecord1.GUID) { componentRecord2.lfVAUUDxYN(componentRecord1.Name); componentRecord2.x63AOXlRIK(componentRecord1.Description); componentRecord2.CvyAHpcreG(componentRecord1.ComponentType); componentRecord2.X8yAQiuh7R(componentRecord1.RuntimeType); componentRecord2.VnhAiVxt7S(false); flag = true; arrayList2.Remove((object)componentRecord2); StrategyComponentManager.TXQRKdObj1(componentRecord2); break; } } if (!flag) { StrategyComponentManager.wcrRFbhwry.ROm6C46rfm(componentRecord1); StrategyComponentManager.H13R1k6g2K(componentRecord1); } } foreach (ComponentRecord componentRecord in arrayList2) { if (componentRecord.GUID == Guid.Empty) { StrategyComponentManager.wcrRFbhwry.fc56KRbFEA(componentRecord); StrategyComponentManager.IP7RCltgOJ(componentRecord); } } return(true); } }