/// <exception cref="KeyNotFoundException">Если это ответ на неизвестный вопрос</exception> public void AddAnswer(Answer answer) { if (questionList.ContainsKey(answer.QuestionId)) { Question question = questionList[answer.QuestionId]; question.AddAnswer(answer); } }
public void AddAnswer(Answer answer) { answers.Add(answer); }
public static string FormatStringWrite(Answer a) { return String.Join(";", a.Id, a.QuestionId, a.IsBest, a.ChosenBestBy, a.AuthorEmail, a.AuthorEfficiency.ToString(Culture), a.AuthorRating, a.DateAdded.ToString("F", Culture), a.Rating, a.ValuesAmount, a.Text, a.Source); }