I need to dump all data from the object into two-dimetional array
this is the declaration:
GetItemCall oGetItemCall = new GetItemCall(oContext);
then, I can use oGetItemCall.Item.ConditionID or oGetItemCall.Item.ListingDetails.EndTime etc.
But the oGetItemCall object has lots of variables and I want to add them into one easy to read 2-dimensional array.
Is there any way of doing this ?
Array is required?
Why don’t use a more flexible structure, like list. So try to convert object to list. A list can be easily accessed through indexes: in this case through the object’s properties names.
Reflection can solve the problem.
Have a look here.