Table of Contents

Struct Param<T>

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

A task parameter guaranteed to resolve from configuration or its default value.

public readonly record struct Param<T> : IEquatable<Param<T>> where T : notnull

Type Parameters

T

Properties

Description

Human-readable help text supplied by the task author.

public string? Description { get; }

Property Value

string?

Name

The configuration key used to resolve this parameter.

public string Name { get; }

Property Value

string

Value

The resolved parameter value.

public T Value { get; }

Property Value

T

Methods

QuotedArgument()

Renders the resolved value as one quoted command-line argument.

public string QuotedArgument()

Returns

string

Operators

implicit operator T(Param<T>)

The resolved parameter value.

public static implicit operator T(Param<T> parameter)

Parameters

parameter Param<T>

The resolved parameter wrapper.

Returns

T