diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoBase.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoBase.cs
index 6b5e61b0ad1c32..874c9b87ba5646 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoBase.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoBase.cs
@@ -10,6 +10,11 @@ namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions
///
public abstract class DirectoryInfoBase : FileSystemInfoBase
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ protected DirectoryInfoBase() { }
+
///
/// Enumerates all files and directories in the directory.
///
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoWrapper.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoWrapper.cs
index a0b4489a5f399c..acd94043e987ba 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoWrapper.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/DirectoryInfoWrapper.cs
@@ -17,7 +17,7 @@ public class DirectoryInfoWrapper : DirectoryInfoBase
private readonly bool _isParentPath;
///
- /// Initializes an instance of .
+ /// Initializes a new instance of the class.
///
/// The .
public DirectoryInfoWrapper(DirectoryInfo directoryInfo)
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoBase.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoBase.cs
index 07510e8c6947cb..7f4c4973d07fe8 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoBase.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoBase.cs
@@ -8,5 +8,9 @@ namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions
///
public abstract class FileInfoBase : FileSystemInfoBase
{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ protected FileInfoBase() { }
}
}
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoWrapper.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoWrapper.cs
index a88a70e492d0c9..bb8e8b91f65188 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoWrapper.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileInfoWrapper.cs
@@ -14,7 +14,7 @@ public class FileInfoWrapper : FileInfoBase
private readonly FileInfo _fileInfo;
///
- /// Initializes instance of to wrap the specified object .
+ /// Initializes a new instance of the class to wrap the specified .
///
/// The
public FileInfoWrapper(FileInfo fileInfo)
@@ -36,7 +36,7 @@ public FileInfoWrapper(FileInfo fileInfo)
/// The full path of the file. (Overrides ).
///
///
- /// Equals the value of .
+ /// Equals the value of .
///
public override string FullName => _fileInfo.FullName;
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileSystemInfoBase.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileSystemInfoBase.cs
index 8f6f8bf3a2aa58..911a22d4366213 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileSystemInfoBase.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Abstractions/FileSystemInfoBase.cs
@@ -9,17 +9,22 @@ namespace Microsoft.Extensions.FileSystemGlobbing.Abstractions
public abstract class FileSystemInfoBase
{
///
- /// A string containing the name of the file or directory
+ /// Initializes a new instance of the class.
+ ///
+ protected FileSystemInfoBase() { }
+
+ ///
+ /// Gets the name of the file or directory.
///
public abstract string Name { get; }
///
- /// A string containing the full path of the file or directory
+ /// Gets the full path of the file or directory.
///
public abstract string FullName { get; }
///
- /// The parent directory for the current file or directory
+ /// Gets the parent directory for the current file or directory.
///
public abstract DirectoryInfoBase? ParentDirectory { get; }
}
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/FilePatternMatch.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/FilePatternMatch.cs
index 87d3954ef41292..4d398097bec2a4 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/FilePatternMatch.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/FilePatternMatch.cs
@@ -31,7 +31,7 @@ public struct FilePatternMatch : IEquatable
public string Stem { get; }
///
- /// Initializes new instance of
+ /// Initializes a new instance of the struct.
///
/// The path to the file matched, relative to the beginning of the matching search pattern.
/// The subpath to the file matched, relative to the first wildcard in the matching search pattern.
@@ -64,9 +64,9 @@ public override bool Equals([NotNullWhen(true)] object? obj) =>
obj is FilePatternMatch match && Equals(match);
///
- /// Gets a hash for the file pattern match.
+ /// Gets a hash code for the current .
///
- /// Some number
+ /// A hash code for the current object.
public override int GetHashCode() =>
HashHelpers.Combine(GetHashCode(Path), GetHashCode(Stem));
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/InMemoryDirectoryInfo.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/InMemoryDirectoryInfo.cs
index 51ed8ec44e2f54..c0b1b01ece8c91 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/InMemoryDirectoryInfo.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/InMemoryDirectoryInfo.cs
@@ -20,7 +20,7 @@ public class InMemoryDirectoryInfo : DirectoryInfoBase
private readonly StringComparison _comparisonType;
///
- /// Creates a new case-sensitive InMemoryDirectoryInfo with the root directory and files given.
+ /// Initializes a new instance of the class with the root directory and files given.
///
/// The root directory that this FileSystem will use.
/// Collection of file names. If relative paths will be prepended to the paths.
@@ -30,7 +30,7 @@ public InMemoryDirectoryInfo(string rootDir, IEnumerable? files)
}
///
- /// Creates a new InMemoryDirectoryInfo with the root directory and files given.
+ /// Initializes a new instance of the class with the root directory and files given.
///
/// The root directory that this FileSystem will use.
/// Collection of file names. If relative paths will be prepended to the paths.
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Matcher.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Matcher.cs
index b3bf45b5af1736..9a819531a60007 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Matcher.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/Matcher.cs
@@ -105,7 +105,7 @@ public class Matcher
internal StringComparison ComparisonType { get; }
///
- /// Initializes an instance of using case-insensitive matching
+ /// Initializes a new instance of the class using case-insensitive matching.
///
public Matcher()
: this(StringComparison.OrdinalIgnoreCase, false)
@@ -113,7 +113,7 @@ public Matcher()
}
///
- /// Initializes an instance of using the string comparison method specified
+ /// Initializes a new instance of the class using the string comparison method specified.
///
/// The to use
public Matcher(StringComparison comparisonType)
@@ -122,7 +122,7 @@ public Matcher(StringComparison comparisonType)
}
///
- /// Initializes an instance of using the string comparison method and filter ordering specified
+ /// Initializes a new instance of the class using the string comparison method and filter ordering specified.
///
/// The to use
///
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/MatcherExtensions.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/MatcherExtensions.cs
index 8c26745aa28efd..164f38ffe6abc5 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/MatcherExtensions.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/MatcherExtensions.cs
@@ -9,6 +9,9 @@
namespace Microsoft.Extensions.FileSystemGlobbing
{
+ ///
+ /// Provides extensions for configuring and executing a .
+ ///
public static class MatcherExtensions
{
///
diff --git a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/PatternMatchingResult.cs b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/PatternMatchingResult.cs
index 5dc2733b8559bb..3dea66306f2206 100644
--- a/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/PatternMatchingResult.cs
+++ b/src/libraries/Microsoft.Extensions.FileSystemGlobbing/src/PatternMatchingResult.cs
@@ -13,7 +13,7 @@ namespace Microsoft.Extensions.FileSystemGlobbing
public class PatternMatchingResult
{
///
- /// Initializes the result with a collection of
+ /// Initializes a new instance of the class with a collection of .
///
/// A collection of
public PatternMatchingResult(IEnumerable files)
@@ -23,7 +23,7 @@ public PatternMatchingResult(IEnumerable files)
}
///
- /// Initializes the result with a collection of
+ /// Initializes a new instance of the class with a collection of .
///
/// A collection of
/// A value that determines if has any matches.