I have the following method signature:
public void MyFunction(Object[,] obj)
I create this object:
List&
To be blunt, the answer is no, not easily.
Perhaps you would like to edit your question to give us more background about why these declarations are needed and we can help you with your root problem?
I assume you cannot change the function you need to pass this into.
I don't see why you cannot just use an object[,]
to begin with. This is my recommendation.
I doubt this will help you in your situation, but it might make some of the array working easier on you to start with. Do you know about the .ToArray() method on a List
?