-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove RequiresUnreferencedCode from DefaultValueAttribute #97842
Comments
Tagging subscribers to this area: @dotnet/area-system-componentmodel Issue DetailsThis constructor of
|
@LakshanF I assume you are proposing removing the RUC. Can you create a PR to do that? Thanks |
Tagging subscribers to 'linkable-framework': @eerhardt, @vitek-karas, @LakshanF, @sbomer, @joperezr, @marek-safar Issue DetailsThis constructor of
|
The Line 34 in a78ddcc
That method has RUC, and so we need to propagate it. I think this would only be fixable once we remove RUC on |
@LakshanF isn't it resolved? I don't see the RUC attribute now |
Yes, #100821 removed the RUC from the constructor. But there is a RUC on its local function, and if the constructor is called, will result in a trimmer warning. The feature switch, _DefaultValueAttributeSupport, can be used to turn off the warning by setting the property to false (the default value of the property will be set to true) |
This constructor of
DefaultValue
has RUC on it. This is likely due to a concern round converters with generic types (Nullable) which has been since fixed in the trimmer.The text was updated successfully, but these errors were encountered: