Example #1
0
 internal int keyOfCorrectAnsver()
 {
     foreach (KeyValuePair <int, string> answer in optionalAnswers)
     {
         if (MSSQLConnector.IsCorrectAnswer(this.id, answer.Key))
         {
             return(answer.Key);
         }
     }
     throw new MissingFieldException("This question doesn't bind to any correct ansver.");
 }