Skip to content

Commit 94abbd5

Browse files
Copilotagocke
andcommitted
Fix anchor syntax and table formatting
Co-authored-by: agocke <515774+agocke@users.noreply.github.com>
1 parent 5d5b3e2 commit 94abbd5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/core/deploying/trimming/fixing-warnings.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ Modern .NET provides source generators for common reflection scenarios:
6363

6464
For more information, see [Known trimming incompatibilities](incompatibilities.md).
6565

66-
## Approach 2: Make code trim-compatible with DynamicallyAccessedMembers {#functionality-with-requirements-on-its-input}
66+
<a name="functionality-with-requirements-on-its-input"></a>
67+
68+
## Approach 2: Make code trim-compatible with DynamicallyAccessedMembers
6769

6870
When reflection is necessary but types are known at compile time, use <xref:System.Diagnostics.CodeAnalysis.DynamicallyAccessedMembersAttribute> to make your code trim-compatible.
6971

@@ -173,7 +175,7 @@ For more details on how requirements flow through code, see [Understanding trim
173175
Choose the minimum access level needed:
174176

175177
| Member Type | When to use |
176-
|-------------|-------------|
178+
| ----------- | ----------- |
177179
| `PublicConstructors` | Using `Activator.CreateInstance()` or `GetConstructor()` |
178180
| `PublicMethods` | Using `GetMethod()` or `GetMethods()` |
179181
| `PublicFields` | Using `GetField()` or `GetFields()` |

0 commit comments

Comments
 (0)