Example #1
0
    private void _InitContainers(int size)
    {
        _rawArray      = new object[size];
        _list          = new List <object>(size);
        _snapshotArray = new object[size];
        _dict          = new Dictionary <int, object>(size);
        _sorted        = new ClientTable <int, object>(size);

        for (int i = 0; i < size; ++i)
        {
            var item = new object();
            _rawArray[i] = item;
            _list.Add(item);
            _dict.Add(i, item);
            _sorted.Add(i, item);
        }
    }