Table of Contents

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 string

path to evaluate

other string

path to search for

baseSegments IEnumerable<string>

base segments that should be considered separately

remaining string

the result

Returns

bool

remainder of path after base segment(s) and searched-for segment have been considered