Skip to content

Commit

Permalink
More partial members: be more specific what auto-property declaration…
Browse files Browse the repository at this point in the history
… can't be used for. (#44004)
  • Loading branch information
tmds authored Dec 18, 2024
1 parent 8fb4a43 commit 9ddfdcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/whats-new/csharp-13.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ Learn more in the updates on [`ref struct` types](../language-reference/builtin-

## More partial members

You can declare `partial` properties and `partial` indexers in C# 13. Partial properties and indexers generally follow the same rules as `partial` methods: you create one *declaring declaration* and one *implementing declaration*. The signatures of the two declarations must match. One restriction is that you can't use an auto-property declaration for a partial property. Properties that don't declare a body are considered the *declaring declaration*.
You can declare `partial` properties and `partial` indexers in C# 13. Partial properties and indexers generally follow the same rules as `partial` methods: you create one *declaring declaration* and one *implementing declaration*. The signatures of the two declarations must match. One restriction is that you can't use an auto-property declaration for *implementing* a partial property. Properties that don't declare a body are considered the *declaring declaration*.

```csharp
public partial class C
Expand Down

0 comments on commit 9ddfdcc

Please sign in to comment.