/// <summary> /// Creates a deep copy of this object. Items contained in its properties will also be deep copies. /// </summary> /// <returns></returns> public BonusRound Copy() { BonusRound ret = new BonusRound(); ret.BonusQuestions.AddRange(mBonusQuestions.Select(item => new BonusQuestion(item.Question.Copy(), item.Answer.Copy()))); return(ret); }
/// <summary> /// Initializes a Question object with the given question value /// </summary> /// <param name="questionText"> /// Question string that will be displayed. /// </param> public Game(IEnumerable <Round> rounds, BonusRound bonusRound = null) { mBonusRound = bonusRound; mRounds = new ObservableCollection <Round>(rounds); }
/// <summary> /// Default constructor, initializes a Question object with an empty question text /// </summary> public Game() { mBonusRound = null; mRounds = new ObservableCollection <Round>(); }