I'm using a 3rd party API to pull some data. The wrapper is held in a list array type. I've managed to pull the data but now I want to display it in my console window in .NET. I thought just using this would be fine:
Console.WriteLine(Obj.GetData(datapull));
However, the output is as follows:
System.Collections.Generic.List`1[CompanyProduct.API.DataRequestItem]
I think I can use a for each loop but I don't know how to do that and it seems overly complicated because I only have a single value to pull! But according to the API doc I have to use the List array for the wrapper.
I also tried to convert the list to a string, like this:
string dataCombined = string.Join( ",", datapull);
This too did not work, and printed the following:
CompanyProduct.API.<name of class for data request>
Can anyone help me or at least point me in the right direction. I thought what I was trying to do was easy!!!
Thanks for any help.
Jay