Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Class MetaStorageCollectionBase<T>

Collection of MetaStorageBase objects.

Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class MetaStorageCollectionBase<T> : StorageCollectionBase, IList, ICollection, IEnumerable<T>, IEnumerable where T : MetaStorageBase
Type Parameters
Name Description
T

Constructors

MetaStorageCollectionBase()

Initializes a new instance of the MetaStorageCollectionBase<T> class.

Declaration
public MetaStorageCollectionBase()

Properties

Item[Int32]

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

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

Methods

AcceptChanges()

Accepts the changes.

Declaration
public virtual void AcceptChanges()

Add(T)

Adds the specified value.

Declaration
public virtual int Add(T value)
Parameters
Type Name Description
T value

The value.

Returns
Type Description
System.Int32

IndexOf(T)

Indexes the of.

Declaration
public virtual int IndexOf(T value)
Parameters
Type Name Description
T value

The value.

Returns
Type Description
System.Int32

RefreshCollection()

Refreshes the collection.

Declaration
public virtual void RefreshCollection()

Remove(T)

Removes the specified value.

Declaration
public virtual void Remove(T value)
Parameters
Type Name Description
T value

The value.

ToArray()

Copies the elements to an array.

Declaration
public virtual T[] ToArray()
Returns
Type Description
T[]

Explicit Interface Implementations

IEnumerable<T>.GetEnumerator()

Returns an enumerator that iterates through the collection.

Declaration
IEnumerator<T> IEnumerable<T>.GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<T>

A System.Collections.Generic.IEnumerator<T> that can be used to iterate through the collection.

Implements

System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable