Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

ITotalCountProvider casting error

$
0
0

hello, i have a C#/XAML project that we are moving over to Xamarin. One of the tasks is to fetch a set of pictures from Azure Mobile Services. It seems that there is uneven support across enumerable collections to determine Count. Any tips or hints on how i can get around the casting error to derive TotalCount of records being returned?

<code>
        var query = picturesTable.OrderBy (x => x.CaptureTimeStamp).IncludeTotalCount ();
        var results = query.ToEnumerableAsync ();
        long count = ((ITotalCountProvider)results).TotalCount;
 </code>

thank you in advance.

Ankur


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>