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
The below occurred when changing a variable from a List to an ImmutableArray.
The same error occurs on a normal array (string[])
The Count previously was a property on the List.
ImmutableArray doesn't have a Count property but a Length one. The above code actually calls the Count() Linq method.
When using Assert.That(names.Count(), Is.EqualTo(1)); roslyn raises CA1829 to use the Length property.
Roslyn doesn't know that the above example will evaluate the method ActualValueDelegate.
The text was updated successfully, but these errors were encountered:
The below occurred when changing a variable from a
List
to anImmutableArray
.The same error occurs on a normal array (
string[]
)The
Count
previously was a property on theList
.ImmutableArray
doesn't have aCount
property but aLength
one. The above code actually calls theCount()
Linq method.When using
Assert.That(names.Count(), Is.EqualTo(1));
roslyn raises CA1829 to use theLength
property.Roslyn doesn't know that the above example will evaluate the method
ActualValueDelegate
.The text was updated successfully, but these errors were encountered: