dotnet / dotnet/dotnet-api-docs
Missing exception type on xml docs for SingleOrDefault(src, predicate)
- Dominant language
- C#
- Stars
- 949
- Forks
- 1.7k
- Avg merge
- 3d 27m
- Merged PRs (30d)
- 49
Description
`public static TSource SingleOrDefault(this IEnumerable source);` has the doc for all exceptions.
`public static TSource SingleOrDefault(this IEnumerable source, Func predicate);`
looks like it's missing the invalid operation one.
```c#
// .....
// Exceptions:
// T:System.ArgumentNullException:
// source is null.
//
// T:System.InvalidOperationException:
// The input sequence contains more than one element.
public static TSource SingleOrDefault(this IEnumerable source);
// .....
// Exceptions:
// T:System.ArgumentNullException:
// source or predicate is null.
public static TSource SingleOrDefault(this IEnumerable source, Func predicate);
```
Contributor guide
Assessment
This issue has not been assessed yet.