/// <summary> /// Create new instance of KeyBasedCollection. /// </summary> /// <param name="parent"> /// Parent AbstractKeyBasedCache. /// </param> /// <param name="type"> /// Collection type, one of the /// <see cref="KeyBasedCollectionType"/> values. /// </param> public KeyBasedCollection(AbstractKeyBasedCache parent, KeyBasedCollectionType type) { m_cache = parent; m_type = type; }
/// <summary> /// Sets parent <see cref="AbstractKeyBasedCache"/>. /// </summary> /// <param name="cache"> /// Sets parent <b>AbstractKeyBasedCache</b>. /// </param> public Enumerator(AbstractKeyBasedCache cache) { m_cache = cache; m_keyEnumerator = cache.Keys.GetEnumerator(); }
/// <summary> /// Creates an instance of a <b>Entry</b>. /// </summary> /// <param name="cache"> /// Parent <b>AbstractKeyBasedCache</b>. /// </param> /// <param name="key"> /// Cache entry <b>key</b>. /// </param> /// <param name="value"> /// Cache entry <b>value</b>. /// </param> public Entry(AbstractKeyBasedCache cache, object key, object value) : this(key, value) { m_cache = cache; }
/// <summary> /// Sets <see cref="AbstractKeyBasedCache"/> that created the /// parent KeyBasedCollection. /// </summary> /// <param name="cache"> /// Sets <b>AbstractKeyBasedCache</b> that created the parent /// KeyBasedCollection. /// </param> /// <param name="type"> /// Type of the collection, one of the /// <see cref="KeyBasedCollectionType"/> values. /// </param> public KeyBasedEnumerator(AbstractKeyBasedCache cache, KeyBasedCollectionType type) { m_cache = cache; m_type = type; m_keyEnumerator = cache.GetKeysEnumerator(); }