1. Creating a list:
var list1 = new List();
2. Adding values to the list:
foreach (int value in Enumerable.Range(1, 10)) { var item = value + 100; list1.Add(item); }
3. Converting list into a string:
string msg = string.Join(",", ohlc.ToArray());