Azure / Azure/azure-sdk-tools

[C# APIView] Explicit interface implementation is rendered as a member of AzureAISearchIndex

Open Beginner friendly
#14,686 0 comments 0 reactions 0 assignees View on GitHub
.NET APIView customer-reported question
Dominant language
C#
Stars
135
Forks
260
Avg merge
3d 1h
Merged PRs (30d)
143

Description

The C# parser is misrendering this explicit interface implementation in APIView.

Bad code snippet:
```csharp
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options);
```

What it should do:
- Treat this as an explicit interface implementation on `IJsonModel`.
- Do not render it as if `AzureAISearchIndex` itself contains a method named `Write`.
- The containing type/member association in APIView should be corrected by the parser.

Good code snippet:
```csharp
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
// implementation
}
```

Contributor guide

Open the contributing guide

Research direction

Start with the C# parser used by APIView and reproduce the bad snippet from the issue. Verify that the explicit interface implementation is associated with IJsonModel rather than AzureAISearchIndex, then confirm the corrected rendering with the good snippet.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
devtools
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.