public object Clone() { GradDomainScore newScore = new GradDomainScore(Domain); newScore.Score = this.Score; return(newScore); }
public GradScoreRecord(XmlElement element) { XmlHelper helper = new XmlHelper(element); RefStudentID = helper.GetString("@ID"); Domains = new Dictionary <string, GradDomainScore>(); foreach (var domainElement in helper.GetElements("GradScore/GradScore/Domain")) { GradDomainScore domainScore = new GradDomainScore(domainElement); Domains.Add(domainScore.Domain, domainScore); } decimal score; if (decimal.TryParse(helper.GetString("GradScore/GradScore/LearnDomainScore"), out score)) { LearnDomainScore = score; } if (decimal.TryParse(helper.GetString("GradScore/GradScore/CourseLearnScore"), out score)) { CourseLearnScore = score; } }