I have the below piece of code.
public class SimpleStack
{
private readonly double[] _items;
public void Push(double item)
{
_items[0] = item;
}
}
How come I am able to mutate the readonly _items array and the compiler allows it ?