PathHelper.StartsWithDotSegment Method

Namespace
Kampute.DocToolkit.Support
Assembly
  • Kampute.DocToolkit.dll

Definition

Determines if the specified path starts with a dot-segment (i.e., "." or "..").
public static bool StartsWithDotSegment(ReadOnlySpan<char> path)

Parameters

path ReadOnlySpan<char>
The path to examine.

Returns

bool
true if the path starts with a dot-segment; otherwise, false.