<li><ahref="../../../System/Collections/ObjectModel/KeyedCollection.html"title="class in System.Collections.ObjectModel"><spanclass="strong">Prev Class</span></a></li>
<dl><dt><spanclass="strong">Type Parameters:</span></dt><dd><code>T</code> - The type of elements in the collection.</dd></dl>
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.lang.Iterable<T></dd>
</dl>
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><ahref="../../../Microsoft/Xna/Framework/GamerServices/GamerCollection.html"title="class in Microsoft.Xna.Framework.GamerServices">GamerCollection</a>, <ahref="../../../Microsoft/Xna/Framework/Graphics/ModelBoneCollection.html"title="class in Microsoft.Xna.Framework.Graphics">ModelBoneCollection</a>, <ahref="../../../Microsoft/Xna/Framework/Graphics/ModelEffectCollection.html"title="class in Microsoft.Xna.Framework.Graphics">ModelEffectCollection</a>, <ahref="../../../Microsoft/Xna/Framework/Graphics/ModelMeshCollection.html"title="class in Microsoft.Xna.Framework.Graphics">ModelMeshCollection</a>, <ahref="../../../Microsoft/Xna/Framework/Graphics/ModelMeshPartCollection.html"title="class in Microsoft.Xna.Framework.Graphics">ModelMeshPartCollection</a></dd>
</dl>
<hr>
<br>
<pre>public class <spanclass="strong">ReadOnlyCollection<T></span>
extends java.lang.Object
implements java.lang.Iterable<T></pre>
<divclass="block">Provides the base class for a generic read-only collection.</div>
<thclass="colOne"scope="col">Constructor and Description</th>
</tr>
<trclass="altColor">
<tdclass="colOne"><code><strong><ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html#ReadOnlyCollection(java.util.List)">ReadOnlyCollection</a></strong>(java.util.List<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>> list)</code>
<divclass="block">Initializes a new instance of the System.Collections.ObjectModel.ReadOnlyCollection<T> class that is a read-only wrapper around the specified list.</div>
<thclass="colFirst"scope="col">Modifier and Type</th>
<thclass="colLast"scope="col">Method and Description</th>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>boolean</code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html#Contains(T)">Contains</a></strong>(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a> value)</code>
<divclass="block">Determines whether an element is in the System.Collections.ObjectModel.ReadOnlyCollection<T>.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>void</code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html#CopyTo(T[], int)">CopyTo</a></strong>(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>[] array,
int index)</code>
<divclass="block">Copies the entire System.Collections.ObjectModel.ReadOnlyCollection<T> to a compatible one-dimensional System.Array, starting at the specified index of the target array.</div>
<divclass="block">Gets the number of elements contained in the System.Collections.ObjectModel.ReadOnlyCollection<T> instance.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code><ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a></code></td>
<divclass="block">Gets the element at the specified index.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>protected java.util.List<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>></code></td>
<divclass="block">Returns the System.Collections.Generic.IList<T> that the System.Collections.ObjectModel.ReadOnlyCollection<T> wraps.</div>
</td>
</tr>
<trclass="rowColor">
<tdclass="colFirst"><code>int</code></td>
<tdclass="colLast"><code><strong><ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html#IndexOf(T)">IndexOf</a></strong>(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a> value)</code>
<divclass="block">Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.ObjectModel.ReadOnlyCollection<T>.</div>
</td>
</tr>
<trclass="altColor">
<tdclass="colFirst"><code>java.util.Iterator<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>></code></td>
<pre>public ReadOnlyCollection(java.util.List<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>> list)</pre>
<divclass="block">Initializes a new instance of the System.Collections.ObjectModel.ReadOnlyCollection<T> class that is a read-only wrapper around the specified list.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>list</code> - The list to wrap.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../System/ArgumentNullException.html"title="class in System">ArgumentNullException</a></code> - list is null.</dd></dl>
<divclass="block">Gets the number of elements contained in the System.Collections.ObjectModel.ReadOnlyCollection<T> instance.</div>
</li>
</ul>
<aname="getItems()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getItems</h4>
<pre>protected java.util.List<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>> getItems()</pre>
<divclass="block">Returns the System.Collections.Generic.IList<T> that the System.Collections.ObjectModel.ReadOnlyCollection<T> wraps.</div>
<dl><dt><spanclass="strong">Returns:</span></dt><dd>The System.Collections.Generic.IList<T> that the System.Collections.ObjectModel.ReadOnlyCollection<T> wraps.</dd></dl>
</li>
</ul>
<aname="get(int)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>get</h4>
<pre>public <ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a> get(int index)</pre>
<divclass="block">Gets the element at the specified index.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>index</code> - The zero-based index of the element to get.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The element at the specified index.</dd>
<dt><spanclass="strong">Throws:</span></dt>
<dd><code><ahref="../../../System/ArgumentOutOfRangeException.html"title="class in System">ArgumentOutOfRangeException</a></code> - index is less than zero.-or-index is equal to or greater than System.Collections.ObjectModel.ReadOnlyCollection<T>.count.</dd></dl>
</li>
</ul>
<aname="Contains(java.lang.Object)">
<!---->
</a><aname="Contains(T)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>Contains</h4>
<pre>public boolean Contains(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a> value)</pre>
<divclass="block">Determines whether an element is in the System.Collections.ObjectModel.ReadOnlyCollection<T>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The object to locate in the System.Collections.ObjectModel.ReadOnlyCollection<T>. The value can be null for reference types.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>true if value is found in the System.Collections.ObjectModel.ReadOnlyCollection<T>; otherwise, false.</dd></dl>
</li>
</ul>
<aname="CopyTo(java.lang.Object[],int)">
<!---->
</a><aname="CopyTo(T[], int)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>CopyTo</h4>
<pre>public void CopyTo(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>[] array,
int index)</pre>
<divclass="block">Copies the entire System.Collections.ObjectModel.ReadOnlyCollection<T> to a compatible one-dimensional System.Array, starting at the specified index of the target array.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>array</code> - The one-dimensional array that is the destination of the elements copied from System.Collections.ObjectModel.ReadOnlyCollection<T>. The System.Array must have zero-based indexing.</dd><dd><code>index</code> - The zero-based index in array at which copying begins.</dd></dl>
</li>
</ul>
<aname="iterator()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>iterator</h4>
<pre>public java.util.Iterator<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>> iterator()</pre>
<divclass="block">Returns an iterator that iterates through the System.Collections.ObjectModel.ReadOnlyCollection<T>.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>iterator</code> in interface <code>java.lang.Iterable<<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a>></code></dd>
</dl>
</li>
</ul>
<aname="IndexOf(java.lang.Object)">
<!---->
</a><aname="IndexOf(T)">
<!---->
</a>
<ulclass="blockListLast">
<liclass="blockList">
<h4>IndexOf</h4>
<pre>public int IndexOf(<ahref="../../../System/Collections/ObjectModel/ReadOnlyCollection.html"title="type parameter in ReadOnlyCollection">T</a> value)</pre>
<divclass="block">Searches for the specified object and returns the zero-based index of the first occurrence within the entire System.Collections.ObjectModel.ReadOnlyCollection<T>.</div>
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>value</code> - The object to locate in the System.Collections.Generic.List<T>. The value can be null for reference types.</dd>
<dt><spanclass="strong">Returns:</span></dt><dd>The zero-based index of the first occurrence of item within the entire System.Collections.ObjectModel.ReadOnlyCollection<T>, if found; otherwise, -1.</dd></dl>
<li><ahref="../../../System/Collections/ObjectModel/KeyedCollection.html"title="class in System.Collections.ObjectModel"><spanclass="strong">Prev Class</span></a></li>