Repository navigation
Add test which accessed property backing field via reflection - #2629
Conversation
jtschuster
left a comment
There was a problem hiding this comment.
Just curious, why use derivedInstance.GetType () instead of typeof (DerivedWithAnnotation) in TypeHierarchyReflectionWarnings.cs?
typeof() is an operator to obtain a type known at compile-time, the behavior is consistent from the standpoint of static analysis so the linker relies on the exact knowledge of the type. And we ignore the fact that the |
|
Thanks @tlakollo for the explanation - it's spot on. |
Test for dotnet/runtime#119541