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
2019-11-29 21:42:39 +01:00

19 lines
547 B
C#

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