Provides the base class for a generic collection that only allows removing items.
Definition
Namespace:Telerik.Windows.Data
Assembly:Telerik.Windows.Data.dll
Type Parameters:
T
Syntax:
C#
public class RemoveOnlyCollection<T> : Collection<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Inheritance: objectCollection<T>RemoveOnlyCollection<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the RemoveOnlyCollection<T> class as a wrapper for the specified list.
C#
public RemoveOnlyCollection(IList<T> list)
The list that is wrapped by the new collection.
Methods
C#
protected override void InsertItem(int index, T item)
Overrides:
Remarks:
This implementation always throws NotSupportedException.
C#
protected override void SetItem(int index, T item)
Overrides:
Remarks:
This implementation always throws NotSupportedException.