Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class QuestionAndAnswers
- {
- string _preliminaryQuestion;
- public string PreliminaryQuestion {
- get => Parameters != null ? string.Format(_preliminaryQuestion, Parameters) : _preliminaryQuestion;
- set => _preliminaryQuestion = value;
- }
- string _repeatedQuestion;
- public string RepeatedQuestion {
- get => Parameters != null ? string.Format(_repeatedQuestion, Parameters) : _repeatedQuestion;
- set => _repeatedQuestion = value;
- }
- public IEnumerable<Answer> PossibleAnswers { get; set; }
- public string[] Parameters { get; set; }
- public QuestionAndAnswers(string question, IEnumerable<Answer> possibleAnswers, string repeatedQuestion = null)
- {
- PreliminaryQuestion = question;
- PossibleAnswers = possibleAnswers;
- RepeatedQuestion = repeatedQuestion ?? question;
- }
- }
Add Comment
Please, Sign In to add comment