﻿using System.Globalization;

namespace GoldenAnvil.Utility
{
	public static class StringUtility
	{
		public static string FormatInvariant(this string format, params object[] args)
		{
			return string.Format(CultureInfo.InvariantCulture, format, args);
		}
	}
}

﻿using System.Collections.Generic;
using System.Globalization;
using System.Text;

namespace GoldenAnvil.Utility
{
	public static class StringUtility
	{
		public static string FormatInvariant(this string format, params object[] args)
		{
			return string.Format(CultureInfo.InvariantCulture, format, args);
		}

		public static string Join(this IEnumerable<string> parts, string joinText)
		{
			var builder = new StringBuilder();
			foreach (var part in parts)
			{
				if (builder.Length != 0)
					builder.Append(joinText);
				builder.Append(part);
			}

			return builder.ToString();
		}
	}
}

Add Join extension for strings
Add Join extension for strings
