Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    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 Source

    ArgumentNameAttribute(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 Source

    Name

    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 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(ArgumentNameAttribute)

    Declaration
    public bool Equals(ArgumentNameAttribute other)
    Parameters
    Type Name Description
    ArgumentNameAttribute other
    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()
    | 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 Source

    Equality(ArgumentNameAttribute, ArgumentNameAttribute)

    Declaration
    public static bool operator ==(ArgumentNameAttribute left, ArgumentNameAttribute right)
    Parameters
    Type Name Description
    ArgumentNameAttribute left
    ArgumentNameAttribute right
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    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>