The following code is just been used as an example but i can't seem to get it to work. Getting the error 'System.Array' does not contain a definition for 'Remove and no extension method 'Remove' accepting a first argument of 'System.Array' could be found.
int[] a = [1,2,3,4,5]
a = a.Remove(4)
The examples that ive seen removes the 4 from the list meaning a then = [1,2,3,5]
What is going wrong here?