PowerArgs.Cli.LoadMoreDataSource.GetHighestKnownIndex C# (CSharp) Method

GetHighestKnownIndex() public method

public GetHighestKnownIndex ( CollectionQuery query ) : int
query CollectionQuery
return int
        public override int GetHighestKnownIndex(CollectionQuery query)
        {
            if(cachedData.ContainsKey(query.CacheKey))
            {
                return cachedData[query.CacheKey].Items.Count - 1;
            }
            else
            {
                return 0;
            }
        }