Skip to content

Commit c534e56

Browse files
authored
seal public classes which don't expose public ctors (#2081)
1 parent c63e231 commit c534e56

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/System.CommandLine/ParseResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ namespace System.CommandLine
1515
/// <summary>
1616
/// Describes the results of parsing a command line input based on a specific parser configuration.
1717
/// </summary>
18-
public class ParseResult
18+
public sealed class ParseResult
1919
{
2020
private readonly IReadOnlyList<ParseError> _errors;
2121
private readonly CommandResult _rootCommandResult;

src/System.CommandLine/Parsing/ParseError.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace System.CommandLine.Parsing
66
/// <summary>
77
/// Describes an error that occurs while parsing command line input.
88
/// </summary>
9-
public class ParseError
9+
public sealed class ParseError
1010
{
1111
internal ParseError(
1212
string message,

0 commit comments

Comments
 (0)