public static int GetScore(this LinkedListNode <Frame> frame) { var score = frame.Value.FrameScore; if (frame.IsStrike()) { score += frame.GetStrikeBonus(); } if (frame.Value.IsSpare) { score += frame.GetSpareBonus(); } return(score); }