Skip to content

Intro example references <Product> type that doesn't exist in the code #53989

@winsmarlcanete

Description

@winsmarlcanete

Type of issue

Typo

Description

Bug: prose references <Product> type that doesn't exist in the code example

In the opening section, this sentence describes the code example above it:

In each case, the type argument in angle brackets (<int>, <string>, <Product>) tells the generic type what kind of data it holds or operates on.

However, <Product> does not appear anywhere in the code example or elsewhere in the document. The actual type arguments used are <int>, <string>, <decimal>, and <bool>.

Impact: Readers — especially those new to generics — may look for a Product type in the example and get confused when they can't find it.

Suggested fix: Replace <Product> in that sentence with one of the type arguments actually used in the code, for example <decimal> or <bool>.

Page URL

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/types/generics

Content source URL

https://github.com/dotnet/docs/blob/main/docs/csharp/fundamentals/types/generics.md

Document Version Independent Id

2f4c4f67-5c8f-5aa8-0db5-9c300486cada

Platform Id

f7071522-09a0-716d-ae21-fd6d3d03c2ac

Article author

@BillWagner

Metadata

  • ID: a00cbfda-8501-d26a-9293-56a2e0d131ad
  • PlatformId: f7071522-09a0-716d-ae21-fd6d3d03c2ac
  • Service: dotnet-csharp
  • Sub-service: fundamentals

Related Issues


Associated WorkItem - 580719

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

Status

🔖 Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions