I have the following method
private void AM(object[] x)
{
}
When we call it like this:
int[] x = new int[1];
AM(x);
We get a compilation error, something like "invalid arguments", "cannot convert from int[] to object[]".
But, if we have an argument (object y), we can have input int as input parameter.
My question is: why Microsoft design them in different ways?