From 6b0834c775bbe047514ed3e0497d09c7c9006a2c Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Tue, 7 Mar 2023 21:14:42 +0100 Subject: [PATCH] seal public classes which don't expose public ctors --- src/System.CommandLine/ParseResult.cs | 2 +- src/System.CommandLine/Parsing/ParseError.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/System.CommandLine/ParseResult.cs b/src/System.CommandLine/ParseResult.cs index 76872fc967..1c9ec067a8 100644 --- a/src/System.CommandLine/ParseResult.cs +++ b/src/System.CommandLine/ParseResult.cs @@ -15,7 +15,7 @@ namespace System.CommandLine /// /// Describes the results of parsing a command line input based on a specific parser configuration. /// - public class ParseResult + public sealed class ParseResult { private readonly IReadOnlyList _errors; private readonly CommandResult _rootCommandResult; diff --git a/src/System.CommandLine/Parsing/ParseError.cs b/src/System.CommandLine/Parsing/ParseError.cs index 0ef389900b..a079b58c8b 100644 --- a/src/System.CommandLine/Parsing/ParseError.cs +++ b/src/System.CommandLine/Parsing/ParseError.cs @@ -6,7 +6,7 @@ namespace System.CommandLine.Parsing /// /// Describes an error that occurs while parsing command line input. /// - public class ParseError + public sealed class ParseError { internal ParseError( string message,