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
PreferLengthCountIsEmptyOverAnyAnalyzer reports CA1860 error only if the type itself has IsEmpty/Count/Length property, and the error is not reported for a type that is derived from another type with one of those properties, e.g. a custom collection type.
For example:
publicclassCustomList<T>:List<T>{}publicclassTest{publicvoidM(){// CA1860 is not reported_=newCustomList<int>().Any();}}