I have this class property
public object[] array { get; set; }
I'm able to get and set the entire array, as well as alter the individual items within the array.
How can I also achieve this with manual get-setters?
None of the answers to these 3 posts:
How do define get and set for an array data member?
Get/Set Method for Array Properties
cover what I'm needing to do.
object[] array;
public object[] Array {
get { return array; }
set { array = value; }
}
would allow me to get and overwrite the entire array, but I wish to have indexal access.