# C1.C1Preview.Util.FastList.FindObjectIndex

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_C1Preview_Util_FastList_FindObjectIndex_" data-uid="C1.C1Preview.Util.FastList.FindObjectIndex*">FindObjectIndex Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_C1Preview_Util_FastList_FindObjectIndex_" data-uid="C1.C1Preview.Util.FastList.FindObjectIndex*"></a>
<h4 id="C1_C1Preview_Util_FastList_FindObjectIndex_System_Object_System_Int32__" data-uid="C1.C1Preview.Util.FastList.FindObjectIndex(System.Object,System.Int32@)">FindObjectIndex(object, out int)</h4>
<div class="markdown level1 summary"><p>Performs a fast search for the specified object within the current <a class="xref" href="C1.C1Preview.Util.FastList.html">FastList</a>.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected bool FindObjectIndex(object obj, out int index)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Function FindObjectIndex(obj As Object, ByRef index As Integer) As Boolean</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></td>
      <td><span class="parametername">obj</span></td>
      <td><p>The object to search for.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">index</span></td>
      <td><p>OUT: the index of <code class="paramref">obj</code> within the current list, or 0 if the object was not found.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 class="returns">Returns</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><b>true</b> if <code class="paramref">obj</code> was found, <b>false</b> otherwise.</p>
</td>
    </tr>
  </tbody>
</table>
</div>
