Another method that may help out is string.Join() , which takes a set of objects and will join them with any delimiter you want. ... <看更多>
Search
Search
Another method that may help out is string.Join() , which takes a set of objects and will join them with any delimiter you want. ... <看更多>
Add(new List<string>()); } Console.WriteLine("dt has {0} rows. foo has {1} slots.", dt.Rows.Count, foo.Count); foreach (DataRow row in dt.Rows) { object[] ... ... <看更多>
... <看更多>
There exists a method for that conversion already: string renderedValues = string.Join( "-", Array.ConvertAll<object, string>(values, Convert.ToString) ); ... ... <看更多>