コード例 #1
0
 /// <summary>
 /// Returns an enumerator that iterates through the elements stored to <see cref="ICnmCache{TKey,TValue}"/>.
 /// </summary>
 /// <returns>
 /// A <see cref="IEnumerator{T}"/> that can be used to iterate through the collection.
 /// </returns>
 /// <filterpriority>1</filterpriority>
 public IEnumerator <KeyValuePair <TKey, TValue> > GetEnumerator()
 {
     lock (m_syncRoot)
     {
         return(new SynchronizedEnumerator(m_cache.GetEnumerator(), m_syncRoot));
     }
 }