Class ModifiedList<T>
Summary description for ModifiedList.
Inheritance
System.Object
ModifiedList<T>
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
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: ImageVault.Common.Lib.Collections.Generic
Assembly: ImageVault.Common.dll
Syntax
public class ModifiedList<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
Name | Description |
---|---|
T |
Constructors
ModifiedList()
Initializes a new instance of the ModifiedList class.
Declaration
public ModifiedList()
ModifiedList(Int32)
Initializes a new instance of the ModifiedList class.
Declaration
public ModifiedList(int capacity)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | capacity |
Fields
DefaultCapacity
Default capacity of new created lists if not specified
Declaration
protected const int DefaultCapacity = 16
Field Value
Type | Description |
---|---|
System.Int32 |
Properties
Count
Gets the Count of the ModifiedList
Declaration
public int Count { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
IsModified
Get/Sets the IsModified of the ModifiedList
Declaration
public bool IsModified { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsReadOnly
Gets the IsReadOnly of the ModifiedList
Declaration
public bool IsReadOnly { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Item[Int32]
Get/Sets the T
item identified by the given arguments of the ModifiedList
Declaration
public T this[int index] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Property Value
Type | Description |
---|---|
T |
Methods
Add(T)
Declaration
public void Add(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Clear()
Declaration
public void Clear()
Contains(T)
Returns a value indicating whether the specified T
is contained in the ModifiedList<T>.
Declaration
public bool Contains(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item | The |
Returns
Type | Description |
---|---|
System.Boolean | true if the T parameter is a member of the ModifiedList<T>; otherwise, false. |
CopyTo(T[], Int32)
Declaration
public void CopyTo(T[] array, int arrayIndex)
Parameters
Type | Name | Description |
---|---|---|
T[] | array | |
System.Int32 | arrayIndex |
FindIndex(Predicate<T>)
Declaration
public int FindIndex(Predicate<T> match)
Parameters
Type | Name | Description |
---|---|---|
System.Predicate<T> | match |
Returns
Type | Description |
---|---|
System.Int32 |
GetEnumerator()
Declaration
public IEnumerator<T> GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerator<T> |
IndexOf(T)
Declaration
public int IndexOf(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Int32 |
Insert(Int32, T)
Declaration
public void Insert(int index, T item)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | |
T | item |
Remove(T)
Declaration
public bool Remove(T item)
Parameters
Type | Name | Description |
---|---|---|
T | item |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveAt(Int32)
Declaration
public void RemoveAt(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index |
Explicit Interface Implementations
IEnumerable.GetEnumerator()
Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |
Implements
System.Collections.Generic.IList<T>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable