Exemple #1
0
 void ScanForCompInfo(string[] input)
 {
     for (int i = 1; i < input.Length; i++)
     {
         if (RegFunctions.IsCompBaseInfo(input[i]))
         {
             string s = input[i].Split('@')[0];
             Dictionary <string, string> d  = ScanFile(s);
             Dictionary <string, string> d2 = RegFunctions.GetDefLineDict(input[i]);
             defaultDict.Add(s, new Dictionary <string, string>());
             if (d != null)
             {
                 foreach (var kv in d2)
                 {
                     DictionaryFunctions.AddOrUpdatePair(kv, d);
                 }
                 defaultDict[s] = d;
             }
             else
             {
                 defaultDict[s] = d2;
             }
         }
     }
 }
        public virtual void FillContentFromDefLine(CompInfoTemp t, string defLine)
        {
            Dictionary <string, string> dt = RegFunctions.GetDefLineDict(defLine);

            foreach (var kv in dt)
            {
                DictionaryFunctions.AddOrUpdatePair(kv, t.content);
            }
        }