Class DisplayNameAttribute
Sets display name for the command in the help list.
Inheritance
System.Object
System.Attribute
DisplayNameAttribute
Implements
System.IEquatable<DisplayNameAttribute>
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public class DisplayNameAttribute : Attribute, IEquatable<DisplayNameAttribute>
Constructors
| Improve this Doc View SourceDisplayNameAttribute(String)
Sets display name for the command in the help list.
Declaration
public DisplayNameAttribute(string text)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | text | Display Name value. |
Properties
| Improve this Doc View SourceText
Display Name value.
Declaration
public string Text { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceEquals(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(DisplayNameAttribute)
Declaration
public bool Equals(DisplayNameAttribute other)
Parameters
| Type | Name | Description |
|---|---|---|
| DisplayNameAttribute | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Attribute.GetHashCode()
Implements
System.IEquatable<T>