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
This shows warning:
Severity Code Description Project File Line Suppression State
Warning IL2075 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Reflection.PropertyInfo.PropertyType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
The text was updated successfully, but these errors were encountered:
How do you obtain the value in propertyInfo? This is complaining because the result of propertyInfo.PropertyType is an unknown type and accessing a property on a type that is not known at the time of trimming might result in the property being trimmed.
propertyInfo.PropertyType.GetProperty("")
This shows warning:
Severity Code Description Project File Line Suppression State
Warning IL2075 'this' argument does not satisfy 'DynamicallyAccessedMemberTypes.PublicProperties' in call to 'System.Type.GetProperty(String)'. The return value of method 'System.Reflection.PropertyInfo.PropertyType.get' does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to.
The text was updated successfully, but these errors were encountered: