fix: Fixing 2008 build

This commit is contained in:
Chris Cameron
2021-01-25 12:04:08 -05:00
parent e0287cfc7b
commit 8411a27173

View File

@@ -77,7 +77,7 @@ namespace ICD.Common.Utils.Extensions
if (extends == null)
throw new ArgumentNullException("extends");
string parentUriString = extends.AbsoluteUri.Remove(extends.AbsoluteUri.Length - extends.Segments.Last().Length);
string parentUriString = extends.AbsoluteUri.Substring(0, extends.AbsoluteUri.Length - extends.Segments.Last().Length);
return new Uri(parentUriString, UriKind.Absolute);
}
}