Class CommandInstanceDescriptor
Describes a command instance.
Inheritance
CommandInstanceDescriptor
Assembly: Wolfringo.Commands.dll
Syntax
public class CommandInstanceDescriptor : ICommandInstanceDescriptor, IEquatable<ICommandInstanceDescriptor>
Constructors
|
Improve this Doc
View Source
CommandInstanceDescriptor(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.
|
MethodInfo |
method |
Method that will be run when the command executes.
|
Properties
|
Improve this Doc
View Source
Attribute
Command attribute that specifies this command.
Declaration
public CommandAttributeBase Attribute { get; }
Property Value
|
Improve this Doc
View Source
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
|
Improve this Doc
View Source
Method
Declaration
public MethodInfo Method { get; }
Property Value
Remarks
Methods
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
|
Improve this Doc
View Source
Equals(ICommandInstanceDescriptor)
Declaration
public bool Equals(ICommandInstanceDescriptor other)
Parameters
Returns
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
Operators
|
Improve this Doc
View Source
Equality(CommandInstanceDescriptor, CommandInstanceDescriptor)
Declaration
public static bool operator ==(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
Parameters
Returns
|
Improve this Doc
View Source
Inequality(CommandInstanceDescriptor, CommandInstanceDescriptor)
Declaration
public static bool operator !=(CommandInstanceDescriptor left, CommandInstanceDescriptor right)
Parameters
Returns
Implements
Extension Methods