title: Passing array to method used on array member in c#
body: <p>i was wandering if there is a way to pass an array to a function that is used on its members( kind of like how you pass the "this" parameter to object).</p>
  
  <p>instead of this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>void public foo(A[] arr){}
  
  void main(){
  
  arr[i].foo(arr);
  }
  </code></pre>
  
  <p>this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>void public foo(A[] arr){}
  
  void main(){
  arr[i].foo();
  }
  </code></pre>
  
  <p>edit: arr is array of A, foo belongs to A
  sorry for bad explanation first question.</p>