using System.Collections.Generic;
namespace QFSW.QC
{
///
/// A managed set of suggestions for a given context.
///
public class SuggestionSet
{
///
/// The context this suggestion set was produced for.
///
public SuggestionContext Context;
///
/// The index of the current selection in the set.
///
public int SelectionIndex;
///
/// The suggestions contained within the set.
///
public readonly List Suggestions = new List();
///
/// The currently selected suggestion in the set, if any.
///
public IQcSuggestion CurrentSelection =>
SelectionIndex >= 0 && SelectionIndex < Suggestions.Count
? Suggestions[SelectionIndex]
: null;
}
}