Open GoogleCodeExporter opened 8 years ago
I also think that Max, Min, MaxBy and MinBy would benefit from having
...IsDefault methods.
I think though that if returning a value type, the return type should be a
nullable if possible.
Original comment by rmy...@gmail.com
on 25 Jul 2015 at 12:36
If you want null out for a value type then you can achieve this by
emptyEnemurable.MaxByOrDefault<Nullable<UInt32>>(person => person.Age);
Assert.Equal(null, result);
or
emptyEnumerable.MaxBy<Nullable<UInt32>>(person => person.Age, null);
Assert.Equal(null, result);
Original comment by mi...@zoltu.net
on 25 Jul 2015 at 5:19
This issue has been migrated to:
https://github.com/MoreLINQ/morelinq/issues/96
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of
any further development.
Original comment by azizatif
on 21 Aug 2015 at 6:56
Original issue reported on code.google.com by
mi...@zoltu.net
on 8 Dec 2014 at 8:12