13 lines
No EOL
393 B
C#
13 lines
No EOL
393 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace WebsitePanel.EnterpriseServer.Extensions
|
|
{
|
|
public static class UriExtensions
|
|
{
|
|
public static Uri Append(this Uri uri, params string[] paths)
|
|
{
|
|
return new Uri(paths.Aggregate(uri.AbsoluteUri, (current, path) => string.Format("{0}/{1}", current.TrimEnd('/'), path.TrimStart('/'))));
|
|
}
|
|
}
|
|
} |