This repository has been archived on 2022-08-05. You can view files and clone it, but cannot push or open issues or pull requests.
CC-Functions/Misc/ArrayFormatter.cs
CreepyCrafter24 53a9bc5fe0 Rider+Fix
2019-12-22 16:58:16 +01:00

15 lines
439 B
C#

namespace CC_Functions.Misc
{
public static class ArrayFormatter
{
public static string ElementsToString(this object[] input, string separator = "\r\n")
{
string a = "";
for (int i = 0; i < input.Length; i++)
a += input[i] + separator;
if (separator.Length > 0)
a = a.Remove(a.Length - separator.Length);
return a;
}
}
}