CommunityToolkit / CommunityToolkit/dotnet

Feat: Guard: Roslyn Analyser / Code fix / suggestion / Quick Fix

Open
#986 0 comments 0 reactions 0 assignees View on GitHub
feature request :mailbox_with_mail:
Dominant language
C#
Stars
3.8k
Forks
400
PR merge metrics
No merged PRs in 30d

Description

### Overview

Diagnostic.Guard:

- In visual studio i would like to have Quick Fix suggestions for method parameters

Quick Fix Example:
- A method parameter of type List, will suggest to make the NotNull Gard code below in the method body.
- etc. For all types.
- Could also work for variables and constructors

### API breakdown

I dont know

### Usage example

I dont know enough..

### Breaking change?

No

### Alternatives

I dont know

### Additional context

_No response_

### Help us help you

No, just wanted to propose this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.