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
incomingstringpath to evaluate
otherstringpath to search for
baseSegmentsIEnumerable<string>base segments that should be considered separately
remainingstringthe result
Returns
- bool
remainder of path after base segment(s) and searched-for segment have been considered