Click or drag to resize

WritableCollectionT Class

A collection of IWritable items which itself also implements IWritable.
Inheritance Hierarchy
SystemObject
  Ookii.Jumbo.IOWritableCollectionT

Namespace: Ookii.Jumbo.IO
Assembly: Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 0.3.0+dc1307f20e065bb638e0b73a34cd216f57e486f1
Syntax
public sealed class WritableCollection<T> : IList<T>, 
	ICollection<T>, IEnumerable<T>, IEnumerable, IWritable, IList, 
	ICollection
where T : class, IWritable

Type Parameters

T
The type of the item.

The WritableCollectionT type exposes the following members.

Constructors
 NameDescription
Public methodWritableCollectionT Initializes a new instance of the WritableCollectionT class that is empty and has the default initial capacity.
Public methodWritableCollectionT(IEnumerableT) Initializes a new instance of the WritableCollectionT class that contains elements copied from the specified collection and has sufficient capacity to accommodate the number of elements copied.
Public methodWritableCollectionT(Int32) Initializes a new instance of the WritableCollectionT class that is empty and has the specified initial capacity.
Top
Properties
 NameDescription
Public propertyCount Gets the number of elements actually contained in the WritableCollectionT.
Public propertyItem Gets or sets the element at the specified index.
Top
Methods
 NameDescription
Public methodAdd Adds an object to the end of the WritableCollectionT.
Public methodAddRange Adds the elements of the specified collection to the end of the WritableCollectionT.
Public methodClear Removes all elements from the WritableCollectionT.
Public methodContains Determines whether an element is in the WritableCollectionT.
Public methodCopyTo Copies the entire WritableCollectionT to a compatible one-dimensional array, starting at the specified index of the target array.
Public methodEquals Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object))
Public methodGetEnumerator Returns an enumerator that iterates through the WritableCollectionT.
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodIndexOf Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the WritableCollectionT that extends from the specified index to the last element.
Public methodInsert Inserts an element into the WritableCollectionT at the specified index.
Public methodRead Reads the object from the specified reader.
Public methodRemove Removes the first occurrence of a specific object from the WritableCollectionT.
Public methodRemoveAt Removes the element at the specified index of the WritableCollectionT.
Public methodToString Returns a String that represents this instance.
(Overrides ObjectToString)
Public methodWrite Writes the object to the specified writer.
Top
Extension Methods
 NameDescription
Public Extension MethodGetSequenceHashCodeT Gets the hash code for the specified sequence of elements.
(Defined by ListExtensions)
Public Extension MethodOrderByT, TKey Sorts the elements of a sequence in ascending or descending order according to a key.
(Defined by ListExtensions)
Public Extension MethodRandomizeT Randomizes the specified list.
(Defined by ListExtensions)
Public Extension MethodRandomizeT Randomizes the specified list.
(Defined by ListExtensions)
Public Extension MethodSwapT Swaps two elements in the specified list.
(Defined by ListExtensions)
Public Extension MethodToDelimitedStringT Creates a string with the items of a list separated by a comma.
(Defined by ListExtensions)
Public Extension MethodToDelimitedStringT Creates a string with the items of a list separated by the specified delimiter.
(Defined by ListExtensions)
Top
Remarks

You cannot add as an item in this collection.

See Also