Skip to content

New content: tutorial on using C# Tuples #5432

@BillWagner

Description

@BillWagner

There are a lot of good uses for tuples and deconstruction that create more readable and concise code. Consider:

  1. constructors that assign multiple fields.
  2. Assignment operators
  3. Equality tests
  4. GetHashCode implementations

There are likely others. This would show a few samples of the different techniques, and explain the pros and cons of each choice.

See #5390 - comment for discussion, and the start of a sample.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions