Class StringExtensions
- Namespace
- Steeltoe.Management.Endpoint
- Assembly
- Steeltoe.Management.EndpointWeb.dll
public static class StringExtensions
- Inheritance
-
StringExtensions
- Inherited Members
Methods
StartsWithSegments(string, string, IEnumerable<string>, out string)
Evaluate if a path starts with a given segment, including optional base paths
public static bool StartsWithSegments(this string incoming, string other, IEnumerable<string> baseSegments, out string remaining)
Parameters
incoming
stringpath to evaluate
other
stringpath to search for
baseSegments
IEnumerable<string>base segments that should be considered separately
remaining
stringthe result
Returns
- bool
remainder of path after base segment(s) and searched-for segment have been considered