protected override void OnExecute(Tangle <T> tangle, out int result) { result = 0; var items = Batch.Buffer; for (int i = 0, c = Batch.Count; i < c; i++) { ShouldReplace = items[i].AllowReplacement; Callback = items[i].Callback; DecisionCallback = items[i].DecisionCallback; if (tangle.InternalSet(items[i].Key, ref items[i].Value, this)) { result += 1; } } }
protected override void OnExecute(Tangle <T> tangle, out bool result) { result = tangle.InternalSet(Key, ref Value, this); }