Removes all items from the current collection.
Type Reason NotSupportedException The current collection is read-only.
ICollection<T>.Count is set to zero.
Namespace: System.Collections.Generic
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0