예제 #1
0
        private ImutList(ImutList <T> baseList, OperationEnum op, int index, T result, int opCount)
        {
            this.baseList      = baseList;
            this.op            = op;
            this.affectedIndex = index;
            this.opResult      = result;
            this.opCount       = opCount;

            if (opCount >= 1000)
            {
                this.initialized   = true;
                myList             = this.ToList();
                this.baseList      = null;
                this.op            = OperationEnum.None;
                this.affectedIndex = 0;
                this.opResult      = default(T);
                this.opCount       = 0;
            }
        }
예제 #2
0
 public ImutListEnumerator(ImutList <T> list)
 {
     this.list = list;
 }