You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When passing in variable.GetType() into a method that is annotated with DynamicallyAccessedMembers, the linker should be able to statically infer the Type if the Type of the variable is sealed. However, the linker is not preserving the correct members on the Type in this situation.
When passing in
variable.GetType()
into a method that is annotated withDynamicallyAccessedMembers
, the linker should be able to statically infer the Type if the Type of the variable is sealed. However, the linker is not preserving the correct members on the Type in this situation.For example,
When linking code like the above, the
message
property is getting trimmed from the anonymous type.See my attempted code change for this scenario in EventSource.
cc @vitek-karas @MichalStrehovsky
The text was updated successfully, but these errors were encountered: