Table of Contents

Class ActionParameter

Namespace
SharpConsoleUI.Plugins
Assembly
SharpConsoleUI.dll

Describes a parameter for an action.

public record ActionParameter : IEquatable<ActionParameter>
Inheritance
ActionParameter
Implements
Inherited Members

Constructors

ActionParameter(string, Type, bool, object?, string?)

Describes a parameter for an action.

public ActionParameter(string Name, Type Type, bool Required, object? DefaultValue = null, string? Description = null)

Parameters

Name string
Type Type
Required bool
DefaultValue object
Description string

Properties

DefaultValue

public object? DefaultValue { get; init; }

Property Value

object

Description

public string? Description { get; init; }

Property Value

string

Name

public string Name { get; init; }

Property Value

string

Required

public bool Required { get; init; }

Property Value

bool

Type

public Type Type { get; init; }

Property Value

Type