Migrate aurora-sharp-desktop
This commit is contained in:
25
aurora-sharp-desktop/Aurora/Utils/Combine.cs
Normal file
25
aurora-sharp-desktop/Aurora/Utils/Combine.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace Aurora.Utils
|
||||
{
|
||||
public static class Misc
|
||||
{
|
||||
public static string Combine(string[] args)
|
||||
{
|
||||
string outString = "";
|
||||
foreach (string arg in args)
|
||||
{
|
||||
if (arg == args.Last())
|
||||
{
|
||||
outString += arg;
|
||||
}
|
||||
else
|
||||
{
|
||||
outString += arg + ":";
|
||||
}
|
||||
}
|
||||
|
||||
return outString;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user