Seal attributes

This commit is contained in:
Tyrrrz
2021-03-25 06:01:46 +02:00
parent 544945c0e6
commit c5a111207f
3 changed files with 3 additions and 3 deletions

View File

@@ -6,7 +6,7 @@ namespace CliFx.Attributes
/// Annotates a type that defines a command.
/// </summary>
[AttributeUsage(AttributeTargets.Class, Inherited = false)]
public class CommandAttribute : Attribute
public sealed class CommandAttribute : Attribute
{
/// <summary>
/// Command's name.

View File

@@ -7,7 +7,7 @@ namespace CliFx.Attributes
/// Annotates a property that defines a command option.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class CommandOptionAttribute : Attribute
public sealed class CommandOptionAttribute : Attribute
{
/// <summary>
/// Option name.

View File

@@ -7,7 +7,7 @@ namespace CliFx.Attributes
/// Annotates a property that defines a command parameter.
/// </summary>
[AttributeUsage(AttributeTargets.Property)]
public class CommandParameterAttribute : Attribute
public sealed class CommandParameterAttribute : Attribute
{
/// <summary>
/// Parameter order.