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
-`articles/` -- In-depth articles on Smart Enums, Value Objects, and Discriminated Unions
207
208
209
+
**Documentation conventions:**
210
+
211
+
- Use `Console.WriteLine` in doc examples, not logger injection -- unless the example specifically demonstrates closure/capture patterns
212
+
- Keep example items consistent across documentation pages -- reuse the same enum items (e.g., Electronics, Clothing, Food) rather than switching between different items within or across pages
213
+
208
214
**Legacy documentation is frozen.** The `docs/version-7/`, `docs/version-8/` directories and `docs/Version-7.x.x.md`, `docs/Version-8.x.x.md` files are archived and must NEVER be read, updated, or modified. Ignore them completely -- they do not exist for the purposes of any task.
209
215
210
216
---
@@ -290,6 +296,7 @@ Skipping step 3 is a policy violation, even if you are confident you know the AP
290
296
- XML documentation required for all publicly visible types and members in `src/Thinktecture.Runtime.Extensions` and framework integration projects
291
297
- XML documentation NOT required in source generator, analyzer, test, and sample projects
292
298
- Do not use `#region`/`#endregion`
299
+
- In XML documentation, wrap code tokens like `true`, `false`, `null`, `default(T)` in `<c>` tags
293
300
294
301
**Source Generator Code** (treat as a checklist -- verify all items before presenting code):
295
302
@@ -302,6 +309,7 @@ Skipping step 3 is a policy violation, even if you are confident you know the AP
302
309
- Use Fully Qualified Names: Use `global::` prefix for type references (e.g., `global::System.ArgumentException`) -- do not generate using directives. Exception: C# language keywords (`string`, `int`, `bool`, etc.) are used as-is
303
310
- Use `#if NET9_0_OR_GREATER` conditional compilation in generated code for NET9+-only features
304
311
- Generated files use file-scoped namespaces
312
+
- Use constants from `Thinktecture.CodeAnalysis.Constants` for well-known names (method names, type names, etc.) -- do not use hardcoded strings or local constants for values already defined there
Copy file name to clipboardExpand all lines: test/Thinktecture.Runtime.Extensions.SourceGenerator.Tests/Extensions/EventSymbolExtensionsTests/GetEventLocation.cs
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -780,14 +780,13 @@ public void Should_handle_event_with_attributes()
0 commit comments