I have a collection of objects that each object would contains a different kind of array (string[],int[],char[]) or even single value as different types.
I want to get the values of each array as single format such as string and convert it to a comma text value.
here is the code that manipulates an object of collection as “UInt16[]”
UInt16[] arrCapabilities = (UInt16[])(queryObj["Capabilities"]);
foreach (UInt16 arrValue in arrCapabilities)
{
Console.WriteLine("Capabilities: {0}", arrValue);
}
You could try using the following code: