Skip to content

Commit 9ddfdcc

Browse files
authored
More partial members: be more specific what auto-property declaration can't be used for. (#44004)
1 parent 8fb4a43 commit 9ddfdcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/whats-new/csharp-13.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Learn more in the updates on [`ref struct` types](../language-reference/builtin-
135135

136136
## More partial members
137137

138-
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*.
138+
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*.
139139

140140
```csharp
141141
public partial class C

0 commit comments

Comments
 (0)