示例#1
0
        public SelfDisposingBitmapDrawable Get(string key)
        {
            SelfDisposingBitmapDrawable drawable = null;

            if (_cache.TryGetValue(key, out drawable))
            {
                return(drawable);
            }
            return(null);
        }
示例#2
0
        public Tuple <ISelfDisposingBitmapDrawable, ImageInformation> Get(string key)
        {
            ISelfDisposingBitmapDrawable drawable = null;

            if (_cache.TryGetValue(key, out drawable))
            {
                var imageInformation = GetInfo(key);
                return(new Tuple <ISelfDisposingBitmapDrawable, ImageInformation>(drawable, imageInformation));
            }

            return(null);
        }