public void CopyTo(Array array, int index) { var enumerator = _array.GetFastEnumerator(); while (enumerator.MoveNext()) { array.SetValue( IsKeyCollection ? enumerator.CurrentKey.Object : enumerator.CurrentValue.ToClr(), index++); } }
public IDictionaryAdapter(PhpHashtable /*!*/ table) { Debug.Assert(table != null); this.enumerator = table.GetFastEnumerator(); }