internal Enumerator(ScorpioDictionary <Key, Value> dictionary) { this.dictionary = dictionary; this.index = 0; this.length = dictionary.Count; this.current = null; }
public bool MoveNext() { if (index < length) { current = dictionary.mValues[index]; index++; return(true); } return(false); }
void SetCapacity(int value) { if (value > 0) { var array = new ScorpioValue <Key, Value> [value]; if (mSize > 0) { Array.Copy(mValues, 0, array, 0, mSize); } mValues = array; } else { mValues = EmptyArray; } }
public ScorpioValue <Key, Value> Set(ScorpioValue <Key, Value> v) { this.key = v.key; this.value = v.value; return(this); }
public void Reset() { index = 0; current = null; }
public ScorpioValue <TKey, TValue> Set(ScorpioValue <TKey, TValue> v) { this.Key = v.Key; this.Value = v.Value; return(this); }