title: Get-Set accessors for array property, with index handled
body: <p>I have this class property</p>
  
  <pre><code>public object[] array { get; set; }
  </code></pre>
  
  <p>I'm able to get and set the entire array, as well as alter the individual items within the array.</p>
  
  <p>How can I also achieve this with manual get-setters?</p>
  
  <p>None of the answers to these 3 posts:</p>
  
  <p><a href="https://stackoverflow.com/questions/9751871/how-do-define-get-and-set-for-an-array-data-member">How do define get and set for an array data member?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/7031299/array-property-syntax-in-c-sharp">Array property syntax in C#</a></p>
  
  <p><a href="https://stackoverflow.com/questions/17320021/get-set-method-for-array-properties">Get/Set Method for Array Properties</a></p>
  
  <p>cover what I'm needing to do.</p>
  
  <pre><code>object[] array;
  public object[] Array {
      get { return array; }
      set { array = value; }
  }
  </code></pre>
  
  <p>would allow me to get and overwrite the entire array, but I wish to have indexal access. </p>