Search Results for

    Show / Hide Table of Contents

    Class CommandAttributeConvention

    Adds settings from CommandAttribute and System.ComponentModel.DataAnnotations.ValidationAttribute set on the model type for CommandLineApplication<TModel>.

    Inheritance
    System.Object
    CommandAttributeConvention
    Implements
    IConvention
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: McMaster.Extensions.CommandLineUtils.Conventions
    Assembly: McMaster.Extensions.CommandLineUtils.dll
    Syntax
    public class CommandAttributeConvention : IConvention

    Methods

    | Improve this Doc View Source

    Apply(ConventionContext)

    Apply the convention.

    Declaration
    public virtual void Apply(ConventionContext context)
    Parameters
    Type Name Description
    ConventionContext context

    The context in which the convention is applied.

    Implements

    IConvention

    See Also

    IConvention
    • Improve this Doc
    • View Source
    In This Article
    Back to top