dotnet / dotnet/csharplang

Champion "Auto-Implemented Property Field-Targeted Attributes" (15.7)

Open
#42 1 comment 25 reactions 1 assignee Claimed by @jcouv View on GitHub
Implemented Needs ECMA Spec Proposal champion
Dominant language
C#
Stars
12.7k
Forks
1.1k
Avg merge
11h 1m
Merged PRs (30d)
3

Description

This feature intends to allow developers to apply attributes directly to the backing fields of auto-implemented properties.

```C#
[field: SomeAttribute]
public int { get; set; }
```

- [X] Proposal added: [proposals/csharp-7.3/auto-prop-field-attrs.md](https://github.com/dotnet/csharplang/blob/master/proposals/csharp-7.3/auto-prop-field-attrs.md)
- [X] [Discussed in LDM](https://github.com/dotnet/csharplang/blob/master/meetings/2017/LDM-2017-02-21.md#declarations-in-embedded-statements)
- [x] Decision in LDM
- [x] Finalized (done, rejected, inactive)
- [ ] Spec'ed

Roslyn tracking issue: https://github.com/dotnet/roslyn/issues/22512

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.