C
C#2y ago
Gladiator

Why are Linq methods incomplete? (MinBy, MaxBy, etc.) [Answered]

There is no method to return object by field which is minimum/maximum. I know I can use Aggregate method but it is weird to me Min/Max linq methods does not return the object itself
7 Replies
Angius
Angius2y ago
.MinBy() .MaxBy()
Gladiator
Gladiator2y ago
I cannot find them .net framework
Angius
Angius2y ago
Ah, oof, ouch owie They're a .NET 6 thing Ancient versions of Framework won't support newer features, I'm afraid That's just how it is
Gladiator
Gladiator2y ago
Thanks It is unity 2021 Probably, it uses the old version
Angius
Angius2y ago
Unity is outdated to hell and back, yes
Gladiator
Gladiator2y ago
thanks Also, please add unity in tags
Accord
Accord2y ago
✅ This post has been marked as answered!