From a3b91a6d0db701526dfcfcb8f67db24430620b2f Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 3 Oct 2024 16:47:54 -0400 Subject: [PATCH] Don't imply partial members are optional (#42823) Fixes #42442 Only a small subset of partial members are optional. Don't imply that they are. --- docs/csharp/language-reference/keywords/partial-member.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/csharp/language-reference/keywords/partial-member.md b/docs/csharp/language-reference/keywords/partial-member.md index 529282098f67e..2d9a607039824 100644 --- a/docs/csharp/language-reference/keywords/partial-member.md +++ b/docs/csharp/language-reference/keywords/partial-member.md @@ -9,7 +9,7 @@ helpviewer_keywords: --- # Partial member (C# Reference) -A partial member has one *declaring declaration* and often one *implementing declaration*. The *declaring declaration* doesn't include a body. The *implementing declaration* provides the body of the member. Partial members enable class designers to provide member hooks, similar to event handlers, that developers can decide to implement or not. Partial types and members provide a way for human developers to write part of a type while tools write other parts of the type. If the developer doesn't supply an optional implementing declaration, the compiler can remove the declaring declaration at compile time. The following conditions apply to partial members: +A partial member has one *declaring declaration* and often one *implementing declaration*. The *declaring declaration* doesn't include a body. The *implementing declaration* provides the body of the member. Partial members enable class designers to provide member hooks that can be implemented by tooling such as source generators. Partial types and members provide a way for human developers to write part of a type while tools write other parts of the type. If the developer doesn't supply an optional implementing declaration, the compiler can remove the declaring declaration at compile time. The following conditions apply to partial members: - Declarations must begin with the contextual keyword [partial](../../language-reference/keywords/partial-type.md). - Signatures in both parts of the partial type must match.