dotnet / dotnet/dotnet-api-docs

Should explicitly call out behavior with duplicates

Open
#1,530 0 comments 0 reactions 0 assignees View on GitHub
area-System.Linq dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

It'd be nice for the docs to call out explicitly what happens in the scenario where a duplicate value exists in the list. Does it throw an exception or does it just use one?

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 55a90074-6a83-041f-48dd-5f38df808375
* Version Independent ID: 28f8f3f9-4ec3-e4ae-206f-25b070894cef
* Content: [Enumerable.ToHashSet Method (System.Linq)](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.tohashset?view=netframework-4.7.2)
* 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.