![]() | WritableCollection<T> Class |
Namespace: Ookii.Jumbo.IO
public sealed class WritableCollection<T> : IList<T>, ICollection<T>, IEnumerable<T>, IEnumerable, IWritable, IList, ICollection where T : IWritable
The WritableCollection<T> type exposes the following members.
Name | Description | |
---|---|---|
![]() | WritableCollection<T>() |
Initializes a new instance of the WritableCollection<T> class that is empty and has the default initial capacity.
|
![]() | WritableCollection<T>(IEnumerable<T>) |
Initializes a new instance of the WritableCollection<T> class that
contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
|
![]() | WritableCollection<T>(Int32) |
Initializes a new instance of the WritableCollection<T> class that
is empty and has the specified initial capacity.
|
Name | Description | |
---|---|---|
![]() | Count |
Gets the number of elements actually contained in the WritableCollection<T>.
|
![]() | Item |
Gets or sets the element at the specified index.
|
Name | Description | |
---|---|---|
![]() | Add |
Adds an object to the end of the WritableCollection<T>.
|
![]() | AddRange |
Adds the elements of the specified collection to the end of the WritableCollection<T>.
|
![]() | Clear |
Removes all elements from the WritableCollection<T>.
|
![]() | Contains |
Determines whether an element is in the WritableCollection<T>.
|
![]() | CopyTo |
Copies the entire WritableCollection<T> to a compatible one-dimensional array, starting at the specified index of the target array.
|
![]() | Equals |
Determines whether the specified Object is equal to this instance.
(Overrides Object.Equals(Object).) |
![]() | GetEnumerator |
Returns an enumerator that iterates through the WritableCollection<T>.
|
![]() | GetHashCode |
Returns a hash code for this instance.
(Overrides Object.GetHashCode().) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | IndexOf |
Searches for the specified object and returns the zero-based index of the first occurrence
within the range of elements in the WritableCollection<T> that extends from the specified index to the last element.
|
![]() | Insert |
Inserts an element into the WritableCollection<T> at the specified index.
|
![]() | Read |
Reads the object from the specified reader.
|
![]() | Remove |
Removes the first occurrence of a specific object from the WritableCollection<T>.
|
![]() | RemoveAt |
Removes the element at the specified index of the WritableCollection<T>.
|
![]() | ToString |
Returns a String that represents this instance.
(Overrides Object.ToString().) |
![]() | Write |
Writes the object to the specified writer.
|
Name | Description | |
---|---|---|
![]() | GetSequenceHashCode<T> |
Gets the hash code for the specified sequence of elements.
(Defined by ListExtensions.) |
![]() | OrderBy<T, TKey> |
Sorts the elements of a sequence in ascending or descending order according to a key.
(Defined by ListExtensions.) |
![]() | Randomize<T>() | Overloaded.
Randomizes the specified list.
(Defined by ListExtensions.) |
![]() | Randomize<T>(Random) | Overloaded.
Randomizes the specified list.
(Defined by ListExtensions.) |
![]() | Swap<T> |
Swaps two elements in the specified list.
(Defined by ListExtensions.) |
![]() | ToDelimitedString<T>() | Overloaded.
Creates a string with the items of a list separated by a comma.
(Defined by ListExtensions.) |
![]() | ToDelimitedString<T>(String) | Overloaded.
Creates a string with the items of a list separated by the specified delimiter.
(Defined by ListExtensions.) |
You cannot add null as an item in this collection.