예제 #1
0
        public void Add(string key, UIImage value)
        {
            if (string.IsNullOrWhiteSpace(key) || value == null)
                return;

            _cache.SetCost(value, new NSString(key), value.GetMemorySize());
        }
예제 #2
0
		public void Add(string key, ImageInformation imageInformation, UIImage value)
        {
			if (string.IsNullOrWhiteSpace(key) || value == null)
				return;

			_imageInformations.TryAdd(key, imageInformation);
            _cache.SetCost(value, new NSString(key), value.GetMemorySize());
        }