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
<p>Casting from an abstract collection to a concrete implementation is bad practice. It makes your code fragile because it becomes
more difficult to change which implementation you are using at a later date.</p>
</overview>
<recommendation>
<p>Consider using the abstract collection's methods and remove the cast.</p>
</recommendation>
<example>
<p>The example shows casting from an <code>IEnumerable<string></code> to a <code>List<string></code>. This should be avoided where possible.</p>