mirror of
https://github.com/Ratstail91/Mementos.git
synced 2025-11-29 10:34:27 +11:00
Committed everything
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Ink.Runtime
|
||||
{
|
||||
public static class StringExt
|
||||
{
|
||||
public static string Join<T>(string separator, List<T> objects)
|
||||
{
|
||||
var sb = new StringBuilder ();
|
||||
|
||||
var isFirst = true;
|
||||
foreach (var o in objects) {
|
||||
|
||||
if (!isFirst)
|
||||
sb.Append (separator);
|
||||
|
||||
sb.Append (o.ToString ());
|
||||
|
||||
isFirst = false;
|
||||
}
|
||||
|
||||
return sb.ToString ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user