Query module AbstractToConcreteCollection

name
Cast from abstract to concrete collection
description
A cast from an abstract collection to a concrete implementation type makes the code brittle; it is best to program against the abstract collection interface only.
kind
problem
problem.severity
warning
precision
medium
id
cs/cast-from-abstract-to-concrete-collection
tags
reliability maintainability modularity external/cwe/cwe-485

Imports

Collections

Provides definitions related to the namespace System.Collections.

Generic

Provides definitions related to the namespace System.Collections.Generic.

csharp

The default C# QL library.

Classes

CollectionInterface

A collection interface.