Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

looping through the values of an ArrayList in C#

Tags:

c#

arraylist

osc

I'm trying to figure out what sort of information these messages contain that are being streamed via OSC. The messages are being stored to an ArrayList. Here is the code:

public void OSCMessageReceived(OSC.NET.OSCMessage message){ 
        string address = message.Address;
        ArrayList args = message.Values;
}

How do I loop through the values of the arrayList args to output its contents?

like image 388
mheavers Avatar asked Sep 27 '12 16:09

mheavers


1 Answers

you can try with this code

foreach(var item in args )
{
  Console.WriteLine(item);
}
like image 123
Aghilas Yakoub Avatar answered Oct 29 '22 06:10

Aghilas Yakoub