Class EquatableList<T>
Represents a strongly typed list of objects that can be accessed by index.
Provides methods to manipulate lists. Also provides functionality
to compare lists against each other through an implementations of
Inheritance
Assembly: DistributedLucene.Net.dll
Syntax
public class EquatableList<T> : IList<T>, IEquatable<IList<T>>
Type Parameters
Name | Description |
---|---|
T | The type of elements in the list. |
Constructors
Name | Description |
---|---|
EquatableList() | Initializes a new instance of the EquatableList<T> class that is empty and has the default initial capacity. |
EquatableList(IEnumerable<T>) | Initializes a new instance of the EquatableList<T> class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied. |
EquatableList(IList<T>, Boolean) | Initializes a new instance of EquatableList<T>.
If the
The internal |
EquatableList(Int32) | Initializes a new instance of the EquatableList<T> class that is empty and has the specified initial capacity. |
Properties
Name | Description |
---|---|
Count | Gets the number of elements contained in the EquatableList<T>. |
IsReadOnly | Gets a value indicating whether the EquatableList<T> is read-only. |
Item[Int32] | Gets or sets the element at the specified index. |
Methods
Name | Description |
---|---|
Add(T) | Adds an object to the end of the EquatableList<T>. |
Clear() | Removes all items from the EquatableList<T>. |
Clone() | Clones the EquatableList<T>. |
Contains(T) | Determines whether the EquatableList<T> contains a specific value. |
CopyTo(T[], Int32) | Copies the entire EquatableList<T> to a compatible one-dimensional array, starting at the specified index of the target array. |
Equals(IList<T>) | Compares this sequence to another
The comparison takes into consideration any values in this collection and values
of any nested collections, but does not take into consideration the data type.
Therefore, EquatableList<T> can equal any |
Equals(Object) | If the object passed implements
The comparison takes into consideration any values in this collection and values
of any nested collections, but does not take into consideration the data type.
Therefore, EquatableList<T> can equal any |
GetEnumerator() | Returns an enumerator that iterates through the EquatableList<T>. |
GetHashCode() | Returns the hash code value for this list.
The hash code determination takes into consideration any values in
this collection and values of any nested collections, but does not
take into consideration the data type. Therefore, the hash codes will
be exactly the same for this EquatableList<T> and another
|
IndexOf(T) | Determines the index of a specific |
Insert(Int32, T) | Inserts an item to the EquatableList<T> at the specified index. |
Remove(T) | Removes the first occurrence of a specific object from the EquatableList<T>. |
RemoveAt(Int32) | Removes the EquatableList<T> item at the specified index. |
ToString() | Returns a string representation of this collection (and any nested collections). The string representation consists of a list of the collection's elements in the order they are returned by its enumerator, enclosed in square brackets ("[]"). Adjacent elements are separated by the characters ", " (comma and space). |