Esempio n. 1
0
        private static string TestAllExtensionNodesRuntime(OS os, out int errorsAdded)
        {
            int    errors = 0;
            string ret    = "";

            Utils.ActOnAllFilesRevursivley(ExtensionLoader.ActiveExtensionInfo.FolderPath + "/Nodes", (Action <string>)(filename =>
            {
                if (!filename.EndsWith(".xml"))
                {
                    return;
                }
                try
                {
                    Computer c = Computer.loadFromFile(filename);
                    if (c != null)
                    {
                        ExtensionLoader.CheckAndAssignCoreServer(c, os);
                    }
                }
                catch (Exception ex)
                {
                    string str1 = string.Format("COMPUTER LOAD ERROR:\nError loading computer \"{0}\"\nError: {1} - {2}", (object)filename, (object)ex.GetType().Name, (object)ex.Message);
                    // ISSUE: variable of a compiler-generated type
                    ExtensionTests.\u003C\u003Ec__DisplayClass4 cDisplayClass4 = this;
                    // ISSUE: reference to a compiler-generated field
                    string str2 = cDisplayClass4.ret + str1 + "\r\n";
                    // ISSUE: reference to a compiler-generated field
                    cDisplayClass4.ret = str2;
                    ++errors;
                }
            }));
            errorsAdded = errors;
            return(ret);
        }