Class ReferenceCache<TKey, TValue>
A base object for storing values keyed on reference.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ExtendedXmlSerializer.Core.Sources
Assembly: ExtendedXmlSerializer.dll
Syntax
public class ReferenceCache<TKey, TValue> : ReferenceCacheBase<TKey, TValue>, ITableSource<TKey, TValue>, ISpecification<TKey>, IParameterizedSource<TKey, TValue>, IAssignable<TKey, TValue> where TKey : class where TValue : class
Type Parameters
TKey
The key reference type. |
TValue
The value type. |
Constructors
ReferenceCache(ConditionalWeakTable<TKey, TValue>.CreateValueCallback)
Declaration
public ReferenceCache(ConditionalWeakTable<TKey, TValue>.CreateValueCallback callback)
Parameters
System.Runtime.CompilerServices.ConditionalWeakTable.CreateValueCallback<>
callback
|
Methods
Create(TKey)
Declaration
protected sealed override TValue Create(TKey parameter)
Parameters
TKey
parameter
|
Returns
TValue
|
Overrides
ExtendedXmlSerializer.Core.Sources.ReferenceCacheBase<TKey, TValue>.Create(TKey)