Ejemplo n.º 1
0
        int IBindingList.Find(PropertyDescriptor property, object key)
        {
            EntityList <T> list = InnerList as EntityList <T>;

            if (list == null || list.Count < 1)
            {
                return(-1);
            }

            return(list.FindIndex(item => Object.Equals(item[property.Name], key)));
            //return -1;
        }