Doing this is not supported. Workaround is to use source generators.
DynamicallyAccessedMemberKinds.RecursiveProperties
At the moment we're not planning on doing this -- the side-effects/viralness of this annotation is too broad compared to alternatives like source generators.
We can reconsider if we find a blocking scenario and can come up with an acceptable design
https://github.com/dotnet/linker/issues/1087#issuecomment-849047358