public void Add(string key, UIImage value) { if (string.IsNullOrWhiteSpace(key) || value == null) return; _cache.SetCost(value, new NSString(key), value.GetMemorySize()); }
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()); }