When using something like the following:
[System.ComponentModel.DataAnnotations.Length(1,int.MaxValue)]publicIList<Foo>Property{get;set;}The options source gen will produce diagnostics
error SYSLIB1217: The validation attribute LengthAttribute should only be applied to properties of type string, array, or ICollection. Using it with the type IList could lead to runtime failures.
This is a regression from the changes in #93088.
When using something like the following:
The options source gen will produce diagnostics
This is a regression from the changes in #93088.