wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 10  →  ?path2? @ 11
/IO.cs
@@ -4,6 +4,7 @@
// rights of fair usage, the disclaimer and warranty conditions. //
///////////////////////////////////////////////////////////////////////////
 
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@@ -21,9 +22,9 @@
/// </summary>
/// <param name="paths">an array of paths</param>
/// <returns>a combined path</returns>
public static string PathCombine(params string[] paths)
public static string PathCombine(string separator = @"\", params string[] paths)
{
return paths.Aggregate((x, y) => Path.Combine(x, y));
return string.Join(separator, paths);
}
 
/// <summary>