title: get a reference of object from List of objects in c#
body: <p>i want to get a reference from a list of objects on an object ,</p>
  
  <p>so the reference  i want object type </p>
  
  <p>i will explain in the following example</p>
  
  <p>i have a method like</p>
  
  <pre><code>method (ref Foo foo)
  {
  //
  }
  </code></pre>
  
  <p>and  i have a list of Foo </p>
  
  <pre><code>List&lt;Foo&gt; listFoo;
  </code></pre>
  
  <p>and i want to call this </p>
  
  <pre><code>method(ref listFoo[i])
  </code></pre>
  
  <p>so this return a reference of a listfoo and i want the reference of the foo number i in the list </p>
  
  <p>thanks</p>