You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csharp/language-reference/compiler-messages/partial-declarations.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,6 +250,23 @@ Certain `partial` method declarations don't require an *implementing declaration
250
250
251
251
When a partial method includes an implementing declaration, both declarations must be identical. Exactly one implementing declaration can be defined.
252
252
253
+
**CS0759** occurs when you have an implementing declaration (a partial method with a body) but no corresponding defining declaration (the signature without a body). Every partial method with an implementation must have both:
254
+
255
+
1. A *defining declaration*: the method signature without a body, as mentioned in the [Partial members](#partial-members) section.
256
+
2. An *implementing declaration*: the method signature with a body.
257
+
258
+
The following example shows code that generates CS0759:
0 commit comments