dotnet icon indicating copy to clipboard operation
dotnet copied to clipboard

Use `field` keyword on generated relay commands

Open colejohnson66 opened this issue 7 months ago • 1 comments

Overview

If LangVersion=preview, the relay command generator should avoid emitting a backing field.

API breakdown

N/A

Usage example

N/A

Breaking change?

No

Alternatives

N/A

Additional context

No response

Help us help you

Yes, I'd like to be assigned to work on this item

colejohnson66 avatar May 02 '25 16:05 colejohnson66

Yes please. These fields are added to the accessible private fields in the view-model and are visible in intellisense. They're redundant and confusing.

In any case (even LangVersion < 14) these fields should be hidden from intellisense.

weitzhandler avatar May 20 '25 05:05 weitzhandler