Java has a really useful feature in LinkedHashMap. A member function removeEldestEntry() where you can return true when the hash is over N entries. Great way to easily declare a LRU cache.
Is there anything like this in .NET?
Edit: The question here does not answer this as that solution does not provide the functionality in removeEldestEntry().