dotnet / dotnet/docs

Please clarify if System.Tuple counts as a tuple type.

Open
#37,490 1 comment 0 reactions 0 assignees View on GitHub
:watch: Not Triaged dotnet-roslyn-api/svc microsoft.codeanalysis/subsvc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

The documentation is somewhat unclear on when a symbol is considered to be a tuple, as there are two kinds of tuples in the standard library. Does it only count for `System.ValueTuple` because of its special metadata, or does it include `System.Tuple` too?

It would be nice to rewrite the summary to clarify this, since there already exists a typo as well:

> "Is this a symbol for a tuple ."

I would make a PR, however I would rather have someone else write it who knows what goes on under the hood.

---
#### Document Details

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

* ID: 89140689-8c0c-0709-10f7-c793eef2c094
* Version Independent ID: 1fb23a39-66df-af9f-1816-8ffb4f66e90c
* Content: [ITypeSymbol.IsTupleType Property (Microsoft.CodeAnalysis)](https://learn.microsoft.com/en-us/dotnet/api/microsoft.codeanalysis.itypesymbol.istupletype?view=roslyn-dotnet-4.6.0&viewFallbackFrom=netstandard-2.0)
* Content Source: [dotnet/xml/Microsoft.CodeAnalysis/ITypeSymbol.xml](https://github.com/dotnet/roslyn-api-docs/blob/live/dotnet/xml/Microsoft.CodeAnalysis/ITypeSymbol.xml)
* Product: **dotnet-roslyn-api**
* Technology: **microsoft.codeanalysis**
* 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.