Class SubcommandAttribute
- Namespace
- McMaster.Extensions.CommandLineUtils
- Assembly
- McMaster.Extensions.CommandLineUtils.dll
Represents a subcommand.
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public sealed class SubcommandAttribute : Attribute
- Inheritance
-
objectAttributeSubcommandAttribute
Constructors
SubcommandAttribute(params Type[])
Initializes a new instance of SubcommandAttribute.
public SubcommandAttribute(params Type[] subcommands)
Parameters
subcommandsType[]The subcommand types.
Properties
Types
The types of the subcommands.
public Type[] Types { get; }
Property Value
- Type[]