Aqueduct.Utils.CSVService.FromCollection C# (CSharp) Method

FromCollection() protected static method

protected static FromCollection ( ICollection values ) : string[]
values ICollection
return string[]
        protected static string[] FromCollection(ICollection<string> values)
        {
            if (values == null || values.Count == 0)
                return new string[] { };

            string[] retVals = new string[values.Count];
            int count = 0;
            foreach (string str in values)
                retVals[count++] = str;
            return retVals;
        }