Class SimpleObjectCollectionBase<T>
Simple object collection.
Inheritance
System.Object
SimpleObjectCollectionBase<T>
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Storage
Assembly: Mediachase.Commerce.dll
Version: 10.8.0Syntax
public class SimpleObjectCollectionBase<T> : StorageCollectionBase, IList, ICollection, IEnumerable<T>, IEnumerable where T : SimpleObject
Type Parameters
Name | Description |
---|---|
T |
Constructors
SimpleObjectCollectionBase()
Initializes a new instance of the SimpleObjectCollectionBase<T> class.
Declaration
public SimpleObjectCollectionBase()
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 |
GetEnumerator()
Returns an enumerator that iterates through the collection.
Declaration
public IEnumerator<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. |
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 |
Remove(T)
Removes the specified value.
Declaration
public virtual void Remove(T value)
Parameters
Type | Name | Description |
---|---|---|
T | value | The value. |
Implements
System.Collections.IList
System.Collections.ICollection
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable