I have the following method signature:
public void MyFunction(Object[,] obj)
I create this object:
List<List<Object>> obj = new List<List<Object>>;
Is there an easy way I can convert this to an Object[,]
?
UPDATE:
The fact is I like to use List
s because I can easily add a new item. Is there a way I can declare my List<>
object to fit this need? I know the number of columns in my Object[,]
but not the number of rows.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…