Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <summary>
 /// Create new instance of KeySetBasedCollection.
 /// </summary>
 /// <param name="parent">
 /// Parent AbstractKeySetBasedCache.
 /// </param>
 /// <param name="type">
 /// Collection type, one of the
 /// <see cref="AbstractKeyBasedCache.KeyBasedCollectionType"/> values.
 /// </param>
 public KeySetBasedCollection(AbstractKeySetBasedCache parent, KeyBasedCollectionType type) : base(parent, type)
 {
 }
Пример #3
0
 /// <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();
 }