Class RefactorChoice
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
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
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
Id
What identifies the choice among the refactoring's, in the answer to it (Id).
public string Id { get; init; }
Property Value
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
Kind
What the choice is made of.
public RefactorChoiceKind Kind { get; init; }
Property Value
Label
What a dialog labels the choice with, in the language of the user interface.
public string Label { get; init; }
Property Value
Options
The options of an Option choice, in the order a dialog shows them; none for any other.
public IReadOnlyList<RefactorOption> Options { get; init; }