wasSharp

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 29  →  ?path2? @ 30
/IO.cs
@@ -119,7 +119,7 @@
/// <param name="separator">the separator character</param>
/// <param name="escape">the escape character</param>
/// <returns>path parts</returns>
public static IEnumerable<string> PathSplit(this string path, char separator, char? escape = null)
public static IEnumerable<string> PathSplit(this string path, char separator, char? escape = null, bool includeRootSeparator = true)
{
var s = new Stack<char>();
var p = new StringBuilder();
@@ -134,7 +134,7 @@
{
if (s.Count.Equals(0) || !s.Peek().Equals(escape))
{
if (p.Length.Equals(0))
if (p.Length.Equals(0) && includeRootSeparator)
{
p.Append(c);
continue;
/Properties/AssemblyInfo.cs
@@ -26,4 +26,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
 
[assembly: AssemblyVersion("1.43.*")]
[assembly: AssemblyVersion("1.44.*")]
/Web/wasHTTPClient.cs
@@ -21,7 +21,7 @@
// <summary>A portable HTTP client.</summar>
public class wasHTTPClient : IDisposable
{
private readonly HttpClient HTTPClient;
private HttpClient HTTPClient;
private readonly string MediaType;
 
public wasHTTPClient(ProductInfoHeaderValue userAgent, CookieContainer cookieContainer, string mediaType,
@@ -89,6 +89,7 @@
public void Dispose()
{
HTTPClient?.Dispose();
HTTPClient = null;
}
 
///////////////////////////////////////////////////////////////////////////