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

26 lines
657 B
C#
Raw Normal View History

2019-09-07 10:12:24 +02:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace CC_Functions.Misc
{
public static class ArrayFormatter
{
public static string ArrayToString(object[] Input, string Seperator = "\r\n")
{
try
{
string a = "";
for (int i = 0; i < Input.Length; i++)
a += Input[i].ToString() + Seperator;
2019-09-11 11:22:16 +02:00
if (Seperator.Length > 0)
a = a.Remove(a.Length - Seperator.Length);
return a;
2019-09-07 10:12:24 +02:00
}
catch { throw; }
}
}
}