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

    Class ArgumentTypeNameAttribute

    Changes the type of attribute inside of error messages.

    Inheritance
    System.Object
    System.Attribute
    ArgumentTypeNameAttribute
    Implements
    System.IEquatable<ArgumentTypeNameAttribute>
    Namespace: TehGM.Wolfringo.Commands
    Assembly: Wolfringo.Commands.dll
    Syntax
    [AttributeUsage(AttributeTargets.Parameter, AllowMultiple = false, Inherited = true)]
    public class ArgumentTypeNameAttribute : Attribute, IEquatable<ArgumentTypeNameAttribute>
    Remarks

    This name will be used by {{Type}} placeholder in error message template.

    Constructors

    | Improve this Doc View Source

    ArgumentTypeNameAttribute(String)

    Changes the type of attribute inside of error messages.

    Declaration
    public ArgumentTypeNameAttribute(string name)
    Parameters
    Type Name Description
    System.String name

    Display name for the argument type.

    Remarks

    This name will be used by {{Type}} placeholder in error message template.

    Properties

    | Improve this Doc View Source

    Name

    Changes the type of attribute inside of error messages.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String
    Remarks

    This name will be used by {{Type}} 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(ArgumentTypeNameAttribute)

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

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

    Inequality(ArgumentTypeNameAttribute, ArgumentTypeNameAttribute)

    Declaration
    public static bool operator !=(ArgumentTypeNameAttribute left, ArgumentTypeNameAttribute right)
    Parameters
    Type Name Description
    ArgumentTypeNameAttribute left
    ArgumentTypeNameAttribute right
    Returns
    Type Description
    System.Boolean

    Implements

    System.IEquatable<T>