The class that caches objects as key/value pairs
| C# | Visual Basic | Visual C++ |
public class Cache<TKey, TValue> where TValue : new()
Public Class Cache(Of TKey, TValue As New)
generic<typename TKey, typename TValue> where TValue : gcnew() public ref class Cache
- TKey
- TValue
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| Cache<(Of <(<'TKey, TValue>)>)>()()()() |
Constructor
| |
| Clear()()()() |
Clears the cache
| |
| Count |
Returns the number of cached items
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
| Get(TKey) |
Gets the cached value
| |
| GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
| GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
| MemberwiseClone()()()() | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Put(TKey, TValue) |
Caches the value
| |
| ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
| Object | ||
| Cache<(Of <(<'TKey, TValue>)>)> | ||
| MemberCache | ||