Add examples of deconstructor element restrictions

Open Beginner friendly
#1,629 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
csharp
Domain
documentation

Research direction

Open expressions.md and read the section around the statement about restrictions on deconstructor_element in different contexts. Identify the restrictions that are not captured by the grammar, then add concrete examples showing what they prohibit. Done means the documentation makes those context-specific restrictions understandable through examples.

Written by the indexing model from the issue text.

Description

In expressions.md, we have:

There are restrictions on which *deconstructor_element*s are valid in a given context which are not expressed in the grammar

It would be useful to provide concrete examples of what those restrictions prohibit.

Dominant language
C#
Stars
815
Forks
99
Avg merge
1d 14h
Merged PRs (30d)
16

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/csharpstandard

All issues in dotnet/csharpstandard

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.