Пример #1
0
 public Statistics()
 {
     CodeStatistics = new CodeStatistics[701];
     for (int i = 0; i < 701; i++)
     {
         CodeStatistics[i] = new CodeStatistics();
     }
 }
Пример #2
0
        public Statistics()
        {
            CodeStatistics = new CodeStatistics[701];
            for (int i = 0; i < 701; i++)
            {
                CodeStatistics[i] = new CodeStatistics(i);
            }

            All    = new Bumblebee.CodeStatistics(0, "All");
            Server = "NULL";
            Url    = "NULL";
        }
Пример #3
0
 private CodeStatistics GetSubstats(int code)
 {
     if (!mSubStats.TryGetValue(code, out CodeStatistics result))
     {
         result = new CodeStatistics(code);
         if (mSubStats.TryAdd(code, result))
         {
             mCache = mSubStats.Values.ToArray();
         }
         else
         {
             mSubStats.TryGetValue(code, out result);
         }
     }
     return(result);
 }