System.ComponentModel.TypeDescriptionProvider.GetCache C# (CSharp) Method

GetCache() public method

public GetCache ( object instance ) : IDictionary
instance object
return IDictionary
	    public virtual IDictionary GetCache(object instance)
        {
            if (_parent != null)
            {
                return _parent.GetCache(instance);
            }

            return null;
        }

Usage Example

 /// <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);
 }
All Usage Examples Of System.ComponentModel.TypeDescriptionProvider::GetCache