Table of Contents

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
object
Attribute
SubcommandAttribute

Constructors

SubcommandAttribute(params Type[])

Initializes a new instance of SubcommandAttribute.

public SubcommandAttribute(params Type[] subcommands)

Parameters

subcommands Type[]

The subcommand types.

Properties

Types

The types of the subcommands.

public Type[] Types { get; }

Property Value

Type[]