public void Cache(PropertyGridRowCacheItem item) { if (IsCached(item) == false) { _items.Add(item); } }
public bool IsCached(PropertyGridRowCacheItem item) { if (_items.Contains(item)) { return(true); } var items = from c in _items where c.Type.Equals(item.Type) && c.PropertyName == item.PropertyName select c; if (items.ToList().Count > 0) { return(true); } else { return(false); } }