dotnet / dotnet/dotnet-api-docs
Max<TSource>(IEnumerable<TSource>) "Exceptions" doc is missing ArgumentException
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
When the source has at least two elements and none of them implement IComparable, an ArgumentException is thrown. This is not documented in the Exceptions section of the `Max<TSource>(IEnumerable<TSource>)` overload.
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: ff6c5327-869d-670c-aca4-710511a2fc72
* Version Independent ID: 422bf5c0-9b03-1bed-adbf-d4c3b375815d
* Content: [Enumerable.Max Method (System.Linq)](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.max?view=netframework-4.7.1#System_Linq_Enumerable_Max__1_System_Collections_Generic_IEnumerable___0__)
* Content Source: [xml/System.Linq/Enumerable.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Linq/Enumerable.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**
Contributor guide
Assessment
This issue has not been assessed yet.