Newer
Older
ClosedXML / ClosedXML_Tests / Utils / PathHelper.cs
@Francois Botha Francois Botha on 6 Sep 2017 449 bytes Add support for .NET 3.5
using System;
using System.IO;
using System.Linq;

namespace ClosedXML_Tests.Utils
{
    public static class PathHelper
    {
        public static string Combine(params string[] paths)
        {
#if _NET35_
            if (paths == null)
            {
                throw new ArgumentNullException("paths");
            }
            return paths.Aggregate(Path.Combine);
#else
            return Path.Combine(paths);
#endif
        }
    }
}