Class PriorityAttribute
Specifies command's priority.
Inheritance
System.Object
System.Attribute
PriorityAttribute
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class PriorityAttribute : Attribute, IEquatable<PriorityAttribute>, IComparable<PriorityAttribute>
Remarks
Constructors
|
Improve this Doc
View Source
PriorityAttribute(Int32)
Creates a new priority attribute.
Declaration
public PriorityAttribute(int priority)
Parameters
Type |
Name |
Description |
System.Int32 |
priority |
Command's priority.
|
Remarks
Properties
|
Improve this Doc
View Source
Priority
Declaration
public int Priority { get; }
Property Value
Type |
Description |
System.Int32 |
|
Remarks
Methods
|
Improve this Doc
View Source
CompareTo(PriorityAttribute)
Declaration
public int CompareTo(PriorityAttribute other)
Parameters
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Attribute.Equals(System.Object)
|
Improve this Doc
View Source
Equals(PriorityAttribute)
Declaration
public bool Equals(PriorityAttribute other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Attribute.GetHashCode()
Operators
|
Improve this Doc
View Source
Equality(PriorityAttribute, PriorityAttribute)
Declaration
public static bool operator ==(PriorityAttribute left, PriorityAttribute right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Inequality(PriorityAttribute, PriorityAttribute)
Declaration
public static bool operator !=(PriorityAttribute left, PriorityAttribute right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>
System.IComparable<T>