[Solved] how to copy/Convert first item in ArrayList to string in C#


It means, that the code it returning an object, which is System.Byte[] array.

ArrayList[i].ToString(); // System.Byte[]

..no matter how many times you do it. It will always return to be the same.

Use this instead

using System.Text; // <-- add this

// inside the code

for(i = 0 ; i <= ArrayList.Count ; i++ )
{
   string TEST = Encoding.UTF8.GetString(ArrayList[i]);
}

..this will encode the bytes to a string representation of the data.

solved how to copy/Convert first item in ArrayList to string in C#