AcceptSolution() public method

public AcceptSolution ( Answer answer ) : void
answer Answer
return void
Ejemplo n.º 1
0
 public virtual void AcceptAnswer(Question question,Answer answer)
 {
     if (!question.IsOwner(this))
         throw new NotSupportedException("An answer can be accepted only by the question's owner");
     question.AcceptSolution(answer);
 }