Hello,
as I am implementing the ICollection-Interface in my class I want to implement the CopyTo-Method and I have to throw an Argument-exception if the array is multidimensional. What is meant by this? The head of my method is this
public void CopyTo(MyClass[] array, int arrayIndex)
I thought these brackets would mean that the given array is one-dimensional but when I automatically import the comments from the Interface the comment appears, that I have to check for multidimensionality. Can someone explain it to me?
With kind regards
Sebastia