SingleOrDefault doesnt accept predicate?
grofit opened this issue · comments
LP commented
In .net Linq you can do myList.SingleOrDefault(x => x.someId == requiredId);
but I noticed in here there is no overload to support this like in .net.
https://msdn.microsoft.com/en-us/library/bb549274(v=vs.110).aspx
Flavio Corpa commented
True, should be done, and the same goes for Single()
, Pull Requests are welcome!
LP commented
PR raised for this.