Exemplo n.º 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;
             }
         }
     }
 }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
        public override void FillContentFromDefLine(CompInfoTemp t, string s)
        {
            Dictionary <string, string> dt = RegFunctions.GetDefLineDict(s);

            t.contents.Add(dt);
        }