Class ConsoleCommandAttribute

Namespace
Elegy
Assembly
Elegy.ConsoleSystem.dll

Marks a method as a console command to be registered.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
public class ConsoleCommandAttribute : Attribute
Inheritance
ConsoleCommandAttribute
Inherited Members

Constructors

ConsoleCommandAttribute(string)

Basic console command attribute constructor.

public ConsoleCommandAttribute(string name = "")

Parameters

name string

Properties

Name

The name of the console command to be displayed and looked up by Execute(string).

public string Name { get; }

Property Value

string