Exemplo n.º 1
0
        protected override Task <T> GetItemAsync(int index)
        {
            // Validate arguments

            if (index < 0 || index > currentCount)
            {
                throw new ArgumentOutOfRangeException("index");//, ResourceHelper.GetErrorResource("Exception_ArgumentOutOfRange_ArrayIndexOutOfRange"));
            }
            // Return the value from the source

            return(dataListSource.GetItemAsync(index));
        }
Exemplo n.º 2
0
 protected override Task <T> GetItemAsync(int index)
 {
     return(dataListSource.GetItemAsync(index));
 }