Class CommandInstanceDescriptor
Describes a command instance.
Inheritance
System.Object
CommandInstanceDescriptor
Namespace: TehGM.Wolfringo.Commands.Initialization
Assembly: Wolfringo.Commands.dll
Syntax
public class CommandInstanceDescriptor : ICommandInstanceDescriptor, IEquatable<ICommandInstanceDescriptor>
Constructors
| Improve this Doc View SourceCommandInstanceDescriptor(CommandAttributeBase, MethodInfo)
Creates a command descriptor.
Declaration
public CommandInstanceDescriptor(CommandAttributeBase attribute, MethodInfo method)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandAttributeBase | attribute | Command attribute that specifies this command. |
| System.Reflection.MethodInfo | method | Method that will be run when the command executes. |
Properties
| Improve this Doc View SourceAttribute
Command attribute that specifies this command.
Declaration
public CommandAttributeBase Attribute { get; }
Property Value
| Type | Description |
|---|---|
| CommandAttributeBase |
HandlerAttribute
Command Handler Attribute present on the handler. Might be null if handler isn't tagged with that attribute.
Declaration
public CommandsHandlerAttribute HandlerAttribute { get; }
Property Value
| Type | Description |
|---|---|
| CommandsHandlerAttribute |
Method
Describes a command instance.
Declaration
public MethodInfo Method { get; }
Property Value
| Type | Description |
|---|---|
| System.Reflection.MethodInfo |
Remarks
Method that will be run when the command executes.
Methods
| Improve this Doc View SourceEquals(Object)
Describes a command instance.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Overrides
System.Object.Equals(System.Object)
|
Improve this Doc
View Source
Equals(ICommandInstanceDescriptor)
Describes a command instance.
Declaration
public bool Equals(ICommandInstanceDescriptor other)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommandInstanceDescriptor | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Describes a command instance.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
Operators
| Improve this Doc View SourceEquality(CommandInstanceDescriptor, CommandInstanceDescriptor)
Describes a command instance.
Declaration
public static bool operator ==(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandInstanceDescriptor | left | |
| CommandInstanceDescriptor | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(CommandInstanceDescriptor, CommandInstanceDescriptor)
Describes a command instance.
Declaration
public static bool operator !=(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandInstanceDescriptor | left | |
| CommandInstanceDescriptor | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Implements
System.IEquatable<T>