[Solved] Still Learning ‘System.StackOverflowException’ was thrown.’
The problem is in TeamLeader::getData() getTBonus() is calling getTPay() which is calling getTBonus() again causing an infinite loop, which will throw the StackOverflowException. You might try using if…else if in those methods instead of just if. public decimal getTBonus() { decimal tBonus = 0; if (TrainHours <= 0 && Hours <= 0) { tBonus = … Read more