Skip to content

Commit

Permalink
Update DynamicallyAccessedMembersAttribute documentation. (#51408)
Browse files Browse the repository at this point in the history
Describe what it means to be applied to class, interface, or struct.
  • Loading branch information
eerhardt authored Apr 17, 2021
1 parent 49bce33 commit e9f3e6a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ namespace System.Diagnostics.CodeAnalysis
/// When this attribute is applied to a location of type <see cref="string"/>, the assumption is
/// that the string represents a fully qualified type name.
///
/// When this attribute is applied to a class, interface, or struct, the members specified
/// can be accessed dynamically on <see cref="Type"/> instances returned from calling
/// <see cref="object.GetType"/> on instances of that class, interface, or struct.
///
/// If the attribute is applied to a method it's treated as a special case and it implies
/// the attribute should be applied to the "this" parameter of the method. As such the attribute
/// should only be used on instance methods of types assignable to System.Type (or string, but no methods
Expand Down

0 comments on commit e9f3e6a

Please sign in to comment.