microsoft / microsoft/api-guidelines

7.10.2 InnerError has property of InnerError

Open
#434 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
23.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

How can this be implemented in C# since this causes error CS0542 "member names cannot be the same as their enclosing type"?

Shouldn't the type of InnerError just be Error?

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.

Research direction

Review the 7.10.2 guidance and the C# compiler error described in the issue. Determine whether the documented InnerError type can be represented in C# or should be Error, then update the guideline to make the valid choice and its rationale explicit.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.