|
ScriptStack 1.0.4
|
Public Member Functions | |
| ReadOnlyICollection (ICollection< T > collectionToWrap) | |
| Initializes a new instance of the ReadOnlyICollection<T> class. | |
| void | Add (T item) |
| Add does not change a ReadOnlyICollection. | |
| bool | Remove (T item) |
| Remove does not change a ReadOnlyICollection. | |
Static Public Member Functions | |
| static ReadOnlyICollection< T > | AsReadOnly (ICollection< T > collectionToWrap) |
| Returned a read only wrapper around the collectionToWrap. | |
Properties | |
| bool | IsReadOnly [get] |
| Clear does not change a ReadOnlyICollection. | |
| int | Count [get] |
| Returns an enumerator that iterates through the collection. | |
Definition at line 10 of file ReadOnlyICollection.cs.
| void ScriptStack.Collections.ReadOnlyICollection< T >.Add | ( | T | item | ) |
Add does not change a ReadOnlyICollection.
| item | The object to add to the T:System.Collections.Generic.ICollection`1. |
| T:System.NotSupportedException | The T:System.Collections.Generic.ICollection`1 is read-only. |
Definition at line 63 of file ReadOnlyICollection.cs.
|
static |
Returned a read only wrapper around the collectionToWrap.
| collectionToWrap | The collection to wrap. |
Definition at line 40 of file ReadOnlyICollection.cs.
References ReadOnlyICollection().
| ScriptStack.Collections.ReadOnlyICollection< T >.ReadOnlyICollection | ( | ICollection< T > | collectionToWrap | ) |
Initializes a new instance of the ReadOnlyICollection<T> class.
| collectionToWrap | The collection to wrap. |
Definition at line 53 of file ReadOnlyICollection.cs.
Referenced by AsReadOnly().
| bool ScriptStack.Collections.ReadOnlyICollection< T >.Remove | ( | T | item | ) |
Remove does not change a ReadOnlyICollection.
| item | The object to remove from the T:System.Collections.Generic.ICollection`1. |
| T:System.NotSupportedException | The T:System.Collections.Generic.ICollection`1 is read-only. |
Definition at line 121 of file ReadOnlyICollection.cs.
|
get |
Returns an enumerator that iterates through the collection.
*/ public IEnumerator<T> GetEnumerator() { return m_collection.GetEnumerator(); }
/**
Gets the number of elements contained in the T:System.Collections.Generic.ICollection`1.
Definition at line 146 of file ReadOnlyICollection.cs.
|
get |
Clear does not change a ReadOnlyICollection.
| T:System.NotSupportedException | The T:System.Collections.Generic.ICollection`1 is read-only. |
*/ public void Clear() { }
/**
Determines whether the T:System.Collections.Generic.ICollection`1 contains a specific value.
| item | The object to locate in the T:System.Collections.Generic.ICollection`1. |
*/ public bool Contains(T item) { return m_collection.Contains(item); }
/**
Copies the elements of the T:System.Collections.Generic.ICollection`1 to an T:System.Array, starting at a particular T:System.Array index.
| array | The one-dimensional T:System.Array that is the destination of the elements copied from T:System.Collections.Generic.ICollection`1. The T:System.Array must have zero-based indexing. |
| arrayIndex | The zero-based index in array at which copying begins. |
| T:System.ArgumentOutOfRangeException | arrayIndex is less than 0. |
| T:System.ArgumentNullException | array is null. |
| T:System.ArgumentException | array is multidimensional.-or-arrayIndex is equal to or greater than the length of array.-or-The number of elements in the source T:System.Collections.Generic.ICollection`1 is greater than the available space from arrayIndex to the end of the destination array.-or-Type T cannot be cast automatically to the type of the destination array. |
*/ public void CopyTo(T[] array, int arrayIndex) { m_collection.CopyTo(array, arrayIndex); }
/**
Gets a value indicating whether the T:System.Collections.Generic.ICollection`1 is read-only.
Definition at line 105 of file ReadOnlyICollection.cs.