I think ```return path.StartsWith(pathBase, StringComparison.OrdinalIgnoreCase);``` is clearer.