Skip to content

Commit

Permalink
Remove mention of PreserveDependencyAttribute from docs (#2666)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbomer authored Mar 1, 2022
1 parent 6aa9837 commit a8f9532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/design/reflection-flow.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ More details discussed in /~https://github.com/dotnet/runtime/issues/35339.

## Escape hatch: DynamicDependencyAttribute annotation

This is an existing custom attribute (known as `PreserveDependencyAttribute`) understood by the linker. This attribute allows the user to declare the type name, method/field name, and signature (all as a string) of a method or field that the method dynamically depends on.
This is an existing custom attribute (known as `DynamicDependencyAttribute`) understood by the linker. This attribute allows the user to declare the type name, method/field name, and signature (all as a string) of a method or field that the method dynamically depends on.

When the linker sees a method/constructor/field annotated with this attribute as necessary, it also marks the referenced member as necessary. It also suppresses all analysis within the method.
See issue /~https://github.com/dotnet/runtime/issues/30902 for details.
Expand Down

0 comments on commit a8f9532

Please sign in to comment.