public static FromStrings ( IEnumerable |
||
segments | IEnumerable |
|
return | IEnumerable |
/// <summary> /// Called when the <see cref="Path"/> needs to be parsed. /// </summary> protected virtual void OnParsePath() { if (!string.IsNullOrEmpty(PathInternal)) { var segments = InternalPathSegments; segments.Clear(); foreach (var segment in UriPathSegment.FromStrings(UriPathSegment.GetPathSegments(PathInternal))) { if (segment != null) { LinkSegment(segment); segments.Add(segment); } } } }
/// <summary> /// Builds a local path from the specified segments. /// </summary> /// <param name="segments">Array of path segments.</param> public SDataUri BuildLocalPath(params string[] segments) { return(BuildLocalPath(UriPathSegment.FromStrings(segments))); }
/// <summary> /// Sets the path for the <see cref="Uri"/>. /// </summary> /// <param name="segments">The path segments for the <see cref="Uri"/>.</param> public UriFormatter SetPath(params string[] segments) { return(SetPath(UriPathSegment.FromStrings(segments))); }