You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ValvePak/ValvePak/Package.cs
+22-4Lines changed: 22 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -171,13 +171,31 @@ public void SetFileName(string fileName)
171
171
/// Optimized packages also support case insensitive search by using a different <see cref="StringComparison"/>.
172
172
/// </summary>
173
173
/// <param name="filePath">Full path to the file to find.</param>
174
-
publicPackageEntry?FindEntry(stringfilePathStr)
174
+
/// <remarks>
175
+
/// Normalizes the directory path separator from <see cref="WindowsDirectorySeparator"/> (\) to <see cref="DirectorySeparator"/> (/) in <paramref name="filePath"/>.
176
+
/// </remarks>
177
+
publicPackageEntry?FindEntry(stringfilePath)
175
178
{
176
-
ArgumentNullException.ThrowIfNull(filePathStr);
179
+
ArgumentNullException.ThrowIfNull(filePath);
177
180
178
181
// Normalize path separators when reading the file list
/// Searches for a given file entry in the file list.
189
+
///
190
+
/// If <see cref="OptimizeEntriesForBinarySearch"/> was called on this package, this method will use <see cref="List{T}.BinarySearch(T, IComparer{T})"/>.
191
+
/// Optimized packages also support case insensitive search by using a different <see cref="StringComparison"/>.
192
+
/// </summary>
193
+
/// <param name="filePath">Full path to the file to find.</param>
194
+
/// <remarks>
195
+
/// Unlike the <see cref="FindEntry(string)"/> version, this one does not normalize the directory path separator.
0 commit comments