Beispiel #1
0
 /// <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())
 {
 }
Beispiel #2
0
 public IDictionaryAdapter(PhpHashtable /*!*/ table)
 {
     Debug.Assert(table != null);
     this.enumerator = table.GetFastEnumerator();
 }
Beispiel #3
0
 /// <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;
 }