3 ms·
If you're going to write code snippets, please make sure they compile! The final example has signature List<Product> but tries to return IOrderedEnumerable<Pro
by xnorswap 1y ago
If you're going to write code snippets, please make sure they compile!
The final example has signature List<Product> but tries to return IOrderedEnumerable<Product>.
I recognise that this is very much a taster rather than even a full introduction, so the author didn't want to explain IOrderedEnumerable<T>, but please when writing blogs, run through your code examples and make sure they compile.
This means that your audience can follow along.
( It just needs a .ToList() on the end. )
- sieep 1y agoThanks for the heads up, must've slipped my mind. Edit: fixed
- NetMageSCW 1y agoIsn’t that also true for the second to last example with the query syntax code?