mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 02:24:28 +11:00
19 lines
421 B
C#
19 lines
421 B
C#
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;
|
|
}
|
|
}
|
|
}
|