Exemplo n.º 1
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="c">日志Logger序列</param>
 public LoggerCollection(LoggerCollection c)
 {
     loggerArray = new ILogger[c.Count];
     if (count + c.count >= loggerArray.Length)
     {
         EnsureCapacity(count + c.count);
     }
     Array.Copy(c.loggerArray, 0, loggerArray, count, c.count);
     count += c.count;
     version++;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造
 /// </summary>
 /// <param name="lc">日志序列</param>
 internal LoggerCollectionEnumerator(LoggerCollection lc)
 {
     collection = lc;
     index      = -1;
     version    = lc.Version;
 }