/// <summary> /// Creates PhpHashtable that shares internal <see cref="table"/> with another array. /// </summary> /// <param name="array">The table to be shared.</param> public PhpHashtable(PhpHashtable /*!*/ array) : this(array.table.AddRef()) { }
public IDictionaryAdapter(PhpHashtable /*!*/ table) { Debug.Assert(table != null); this.enumerator = table.GetFastEnumerator(); }
/// <summary> /// Creates the collection of keys or values over the given array. /// </summary> /// <exception cref="ArgumentNullException"></exception> public DictionaryKeysOrValuesCollection(PhpHashtable array, bool keys) { _array = array ?? throw new ArgumentNullException(nameof(array)); _keys = keys; }