Open weifenluo opened 3 years ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to this area: @safern See info in area-owners.md if you want to be subscribed.
Author: | weifenluo |
---|---|
Assignees: | - |
Labels: | `area-System.ComponentModel`, `untriaged` |
Milestone: | - |
Tagging subscribers to this area: @ajcvickers, @bricelam, @roji See info in area-owners.md if you want to be subscribed.
Author: | weifenluo |
---|---|
Assignees: | - |
Labels: | `area-System.ComponentModel.DataAnnotations`, `untriaged` |
Milestone: | - |
In the demo project (full source code here: https://github.com/weifenluo/TestCustomTypeDescriptor), there is a
DataClass
that implementsICustomTypeDescriptor
, with oneName
property decorated withRequired
attribute:This
DataClass
should be equivalent to:The following unit test failed:
When targeting .Net Framework 4.6.1, it throws an exception:
When targeting .Net 5, it failed the last assert: