protected bool TryGetFromCache(IDictionary<string, IExtendedResourceProxy> cache,
                                object underlyingResource,
                                out IExtendedResourceProxy extendedResource)
 {
     if (cache.TryGetValue(Property.Name, out extendedResource))
     {
         if ((extendedResource != null && extendedResource.WrappedResource == underlyingResource) || underlyingResource == null)
             return true;
     }
     return false;
 }
 protected bool TryGetFromCache(IDictionary <string, IExtendedResourceProxy> cache,
                                object underlyingResource,
                                out IExtendedResourceProxy extendedResource)
 {
     if (cache.TryGetValue(Property.Name, out extendedResource))
     {
         if ((extendedResource != null && extendedResource.WrappedResource == underlyingResource) || underlyingResource == null)
         {
             return(true);
         }
     }
     return(false);
 }