Closed jasonlaw closed 2 years ago
oh c'mon man, this method appeared in .NET 6, it's not even there in .Net 5: https://docs.microsoft.com/en-us/dotnet/api/system.linq.queryable.maxby?view=net-6.0&viewFallbackFrom=net-5.0
I believe you can rewrite your query, MaxBy is a combination of GroupBy and Max
Opps..sorry, my bad, didn't aware of that. Will try on the GroupBy and Max as per suggested. Thank you very much and very sorry about it.
Error:
My Code: