public void AddUnitGrade(UnitGrade unitgrade) { if (unitgrade == null) { throw new ArgumentException("Cannot add a null unitgrade to trimester performance"); } unitGrades.Add(unitgrade); }
public override bool Equals(object obj) { if ((obj == null) || (obj.GetType() != typeof(UnitGrade))) { return(false); } UnitGrade compGrade = (UnitGrade)obj; if (compGrade.unitCode == unitCode) { return(true); } else { return(false); } }