public void Apply() { if (count == 0) { return; } int storeCapacity = store.Capacity(); int reqCapacity = store.Count() + count; if (storeCapacity < reqCapacity) { store.Resize(reqCapacity); } for (int i = 0; i < count; i++) { store.Insert(values[i], surrogates[i]); } }