Class ArgumentNameAttribute
Changes the name of attribute inside of error messages.
Inheritance
System.Object
System.Attribute
ArgumentNameAttribute
Implements
System.IEquatable<ArgumentNameAttribute>
Namespace: TehGM.Wolfringo.Commands
Assembly: Wolfringo.Commands.dll
Syntax
[AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
public class ArgumentNameAttribute : Attribute, IEquatable<ArgumentNameAttribute>
Remarks
This name will be used by {{Name}} placeholder in error message template.
Constructors
| Improve this Doc View SourceArgumentNameAttribute(String)
Changes the name of attribute inside of error messages.
Declaration
public ArgumentNameAttribute(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | Display name for the argument. |
Remarks
This name will be used by {{Name}} placeholder in error message template.
Properties
| Improve this Doc View SourceName
Display name for the argument.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This name will be used by {{Name}} placeholder in error message template.
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(ArgumentNameAttribute)
Declaration
public bool Equals(ArgumentNameAttribute other)
Parameters
Type | Name | Description |
---|---|---|
ArgumentNameAttribute | other |
Returns
Type | Description |
---|---|
System.Boolean |
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Attribute.GetHashCode()
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()
Operators
| Improve this Doc View SourceEquality(ArgumentNameAttribute, ArgumentNameAttribute)
Declaration
public static bool operator ==(ArgumentNameAttribute left, ArgumentNameAttribute right)
Parameters
Type | Name | Description |
---|---|---|
ArgumentNameAttribute | left | |
ArgumentNameAttribute | right |
Returns
Type | Description |
---|---|
System.Boolean |
Inequality(ArgumentNameAttribute, ArgumentNameAttribute)
Declaration
public static bool operator !=(ArgumentNameAttribute left, ArgumentNameAttribute right)
Parameters
Type | Name | Description |
---|---|---|
ArgumentNameAttribute | left | |
ArgumentNameAttribute | right |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IEquatable<T>