Table of Contents

Class RefactorChoice

Namespace
RDCore.SDK.Platform.Protocol
Assembly
RDCore.SDK.Protocol.dll

One thing a refactoring asks its user, with its default.

public sealed record RefactorChoice : IEquatable<RefactorChoice>
Inheritance
RefactorChoice
Implements
Inherited Members

Properties

CanReorder

Whether the user can put the items of a List choice in another order: the parameters of a signature can be.

public bool CanReorder { get; init; }

Property Value

bool

Default

The answer the refactoring takes by default: a name, the value of an option, or true or false; null for a list, whose items' choices have their own.

public string? Default { get; init; }

Property Value

string

Description

What a dialog says of the choice, in the language of the user interface; null for a choice its label says enough of.

public string? Description { get; init; }

Property Value

string

Id

What identifies the choice among the refactoring's, in the answer to it (Id).

public string Id { get; init; }

Property Value

string

Items

The items of a List choice, in the order they are written; none for any other.

public IReadOnlyList<RefactorItem> Items { get; init; }

Property Value

IReadOnlyList<RefactorItem>

Kind

What the choice is made of.

public RefactorChoiceKind Kind { get; init; }

Property Value

RefactorChoiceKind

Label

What a dialog labels the choice with, in the language of the user interface.

public string Label { get; init; }

Property Value

string

Options

The options of an Option choice, in the order a dialog shows them; none for any other.

public IReadOnlyList<RefactorOption> Options { get; init; }

Property Value

IReadOnlyList<RefactorOption>