示例#1
0
 /// <summary>
 /// Removes elements that are associated with one of <paramref name="keys"/> from the <see cref="ICnmCache{TKey,TValue}"/>.
 /// </summary>
 /// <param name="keys">
 /// The keys that are associated with elements to remove from the <see cref="ICnmCache{TKey,TValue}"/>.
 /// </param>
 /// <exception cref="ArgumentNullException">
 /// <paramref name="keys"/>is <see langword="null"/>.
 /// </exception>
 /// <seealso cref="ICnmCache{TKey,TValue}.Set"/>
 /// <seealso cref="ICnmCache{TKey,TValue}.Remove"/>
 /// <seealso cref="ICnmCache{TKey,TValue}.TryGetValue"/>
 /// <seealso cref="ICnmCache{TKey,TValue}.Clear"/>
 /// <seealso cref="ICnmCache{TKey,TValue}.PurgeExpired"/>
 public void RemoveRange(IEnumerable <TKey> keys)
 {
     lock (m_syncRoot)
     {
         m_cache.RemoveRange(keys);
     }
 }