Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class StorageCollectionBase

Inheritance
System.Object
StorageCollectionBase
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 14.26.0
Syntax
public abstract class StorageCollectionBase : Object, IList, ICollection, IEnumerable

Constructors

StorageCollectionBase()

Initializes a new instance of the StorageCollectionBase class.

Declaration
protected StorageCollectionBase()

StorageCollectionBase(Int32)

Initializes a new instance of the StorageCollectionBase class.

Declaration
protected StorageCollectionBase(int capacity)
Parameters
Type Name Description
System.Int32 capacity

The capacity.

Properties

Capacity

Gets or sets the capacity.

Declaration
public int Capacity { get; set; }
Property Value
Type Description
System.Int32

The capacity.

Count

Gets the number of elements contained in the System.Collections.ICollection.

Declaration
public int Count { get; }
Property Value
Type Description
System.Int32

DeletedList

Gets the deleted list.

Declaration
protected ArrayList DeletedList { get; }
Property Value
Type Description
System.Collections.ArrayList

The deleted list.

InnerList

Gets the inner list.

Declaration
protected ArrayList InnerList { get; }
Property Value
Type Description
System.Collections.ArrayList

The inner list.

Item[Int32]

Gets or sets the System.Object at the specified index.

Declaration
public object this[int index] { get; set; }
Parameters
Type Name Description
System.Int32 index
Property Value
Type Description
System.Object

List

Gets the list.

Declaration
protected IList List { get; }
Property Value
Type Description
System.Collections.IList

The list.

Methods

Clear()

Removes all items from the System.Collections.IList.

Declaration
public void Clear()
Exceptions
Type Condition
System.NotSupportedException

The System.Collections.IList is read-only.

GetEnumerator()

Returns an enumerator that iterates through a collection.

Declaration
public IEnumerator GetEnumerator()
Returns
Type Description
System.Collections.IEnumerator

An System.Collections.IEnumerator object that can be used to iterate through the collection.

Remove(Object)

Removes the first occurrence of a specific object from the System.Collections.IList.

Declaration
public virtual void Remove(object value)
Parameters
Type Name Description
System.Object value

The System.Object to remove from the System.Collections.IList.

Exceptions
Type Condition
System.NotSupportedException

The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

RemoveAt(Int32)

Removes the System.Collections.IList item at the specified index.

Declaration
public void RemoveAt(int index)
Parameters
Type Name Description
System.Int32 index

The zero-based index of the item to remove.

Exceptions
Type Condition
System.ArgumentOutOfRangeException

index is not a valid index in the System.Collections.IList.

System.NotSupportedException

The System.Collections.IList is read-only.-or- The System.Collections.IList has a fixed size.

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.IEnumerable