public bool TryGet(string key, out Bitmap bmp) { if ((bmp = memCache.Get(key)) != null) { return(true); } return(diskCache.TryGet(key, out bmp)); }
public bool TryGet(string key, out SelfDisposingBitmapDrawable drawable) { if (memCache.TryGetValue(new Uri(key), out drawable)) { return(true); } Bitmap bmp; if (!diskCache.TryGet(key, out bmp)) { return(false); } drawable = CreateCacheableDrawable(bmp); return(true); }