wasSharp – Blame information for rev 33
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
7 | office | 1 | /////////////////////////////////////////////////////////////////////////// |
2 | // Copyright (C) Wizardry and Steamworks 2013 - License: GNU GPLv3 // |
||
3 | // Please see: http://www.gnu.org/licenses/gpl.html for legal details, // |
||
4 | // rights of fair usage, the disclaimer and warranty conditions. // |
||
5 | /////////////////////////////////////////////////////////////////////////// |
||
6 | |||
7 | using System.IO; |
||
8 | using System.Linq; |
||
9 | |||
10 | namespace wasSharp |
||
11 | { |
||
26 | office | 12 | public static class String |
7 | office | 13 | { |
14 | /////////////////////////////////////////////////////////////////////////// |
||
15 | // Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 // |
||
16 | /////////////////////////////////////////////////////////////////////////// |
||
17 | /// <summary> |
||
18 | /// Combine multiple paths. |
||
19 | /// </summary> |
||
20 | /// <param name="paths">an array of paths</param> |
||
21 | /// <returns>a combined path</returns> |
||
22 | public static string PathCombine(params string[] paths) |
||
23 | { |
||
24 | return paths.Aggregate((x, y) => Path.Combine(x, y)); |
||
25 | } |
||
26 | } |
||
27 | office | 27 | } |