/// <summary>Gets a per-object cache, accessed as an <see cref="T:System.Collections.IDictionary" /> of key/value pairs.</summary>
/// <returns>An <see cref="T:System.Collections.IDictionary" /> if the provided object supports caching; otherwise, null.</returns>
/// <param name="instance">The object for which to get the cache.</param>
public virtual IDictionary GetCache(object instance)
{
if (_parent != null)
{
return(_parent.GetCache(instance));
}
return(null);
}