A value used by the SynchronizedCachedSingletonFactory<TKey, TValue>. More...
Public Member Functions | |
CacheValue (CacheKey< TKey, TValue > key, TValue value) | |
Initializes a new instance of the CacheValue<TKey,TValue> struct. More... | |
override bool | Equals (object obj) |
Compares the values of two CacheValue<TKey,TValue> instances. More... | |
override int | GetHashCode () |
Gets the hash code of the value. More... | |
override string | ToString () |
Returns a string representation of the instance. More... | |
Public Attributes | |
readonly CacheKey< TKey, TValue > | Key |
The cache key. More... | |
readonly TValue | Value |
The value. More... | |
A value used by the SynchronizedCachedSingletonFactory<TKey, TValue>.
TKey | The type of keys the factory uses. |
TValue | The type of values the factory uses. |
|
inline |
Initializes a new instance of the CacheValue<TKey,TValue> struct.
key | The key. |
value | The value. |
|
inline |
Compares the values of two CacheValue<TKey,TValue> instances.
obj | The obj. |
InvalidCastException | obj is not a CacheValue<TKey,TValue>. |
|
inline |
Gets the hash code of the value.
|
inline |
Returns a string representation of the instance.
readonly CacheKey<TKey, TValue> ExitGames.Threading.CachedSingletonFactory.CacheValue< TKey, TValue >.Key |
The cache key.
readonly TValue ExitGames.Threading.CachedSingletonFactory.CacheValue< TKey, TValue >.Value |
The value.