Skip to content

Commit 38c5e75

Browse files
CopilotBillWagner
andcommitted
Add build-only diagnostic note to CS0169 documentation
Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com>
1 parent e8ff8b9 commit 38c5e75

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/csharp/misc/cs0169.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ ms.assetid: 04b0015f-658d-440a-b9ba-831178f1a180
1313
The private field 'class member' is never used
1414

1515
A private variable was declared but never referenced. A common way to generate this warning is when you declare a private member of a class and do not use it.
16+
17+
> [!NOTE]
18+
> This warning is only reported during explicit **Build** or **Rebuild** operations. It does not appear during typing in the IDE as part of IntelliSense diagnostics. This means that if you fix the warning by using the field or removing it, the warning might persist in the error list until you build or rebuild the project again.
1619
1720
The following sample generates CS0169:
1821

0 commit comments

Comments
 (0)