Newer
Older
TheVengeance-Project-IADE-Unity2D / Assets / Ink / InkLibs / InkCompiler / InkStringConversionExtensions.cs
@Rackday Rackday on 29 Oct 421 bytes Major Update
using System.Collections.Generic;

namespace Ink
{
    public static class InkStringConversionExtensions
    {
        public static string[] ToStringsArray<T>(this List<T> list) {
            int count = list.Count;
            var strings = new string[count];

            for(int i = 0; i < count; i++) {
                strings[i] = list[i].ToString();
            }

            return strings;
        }
    }
}