From c5a111207feda675f26dfb2056f0b80c3775badf Mon Sep 17 00:00:00 2001 From: Tyrrrz Date: Thu, 25 Mar 2021 06:01:46 +0200 Subject: [PATCH] Seal attributes --- CliFx/Attributes/CommandAttribute.cs | 2 +- CliFx/Attributes/CommandOptionAttribute.cs | 2 +- CliFx/Attributes/CommandParameterAttribute.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CliFx/Attributes/CommandAttribute.cs b/CliFx/Attributes/CommandAttribute.cs index 23f5d2f..6030895 100644 --- a/CliFx/Attributes/CommandAttribute.cs +++ b/CliFx/Attributes/CommandAttribute.cs @@ -6,7 +6,7 @@ namespace CliFx.Attributes /// Annotates a type that defines a command. /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] - public class CommandAttribute : Attribute + public sealed class CommandAttribute : Attribute { /// /// Command's name. diff --git a/CliFx/Attributes/CommandOptionAttribute.cs b/CliFx/Attributes/CommandOptionAttribute.cs index d2092fb..369a96b 100644 --- a/CliFx/Attributes/CommandOptionAttribute.cs +++ b/CliFx/Attributes/CommandOptionAttribute.cs @@ -7,7 +7,7 @@ namespace CliFx.Attributes /// Annotates a property that defines a command option. /// [AttributeUsage(AttributeTargets.Property)] - public class CommandOptionAttribute : Attribute + public sealed class CommandOptionAttribute : Attribute { /// /// Option name. diff --git a/CliFx/Attributes/CommandParameterAttribute.cs b/CliFx/Attributes/CommandParameterAttribute.cs index b226212..5012028 100644 --- a/CliFx/Attributes/CommandParameterAttribute.cs +++ b/CliFx/Attributes/CommandParameterAttribute.cs @@ -7,7 +7,7 @@ namespace CliFx.Attributes /// Annotates a property that defines a command parameter. /// [AttributeUsage(AttributeTargets.Property)] - public class CommandParameterAttribute : Attribute + public sealed class CommandParameterAttribute : Attribute { /// /// Parameter order.