Esempio n. 1
0
 /// <summary>
 /// Copies <see cref="CourseArgs"/> data into a <see cref="Course"/> Object
 /// </summary>
 /// <param name="data">represents data needed to populate a <see cref="Course"/></param>
 /// <see cref="CourseArgs"/>
 public void Deserializer(CourseArgs data)
 {
     this.id         = data.CourseID.ToString();
     this.name       = data.CourseDescription;
     this.number     = data.CourseNumber.ToString();
     this.courseType = data.CourseType;
     this.credits    = data.CreditHours;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a <see cref="Course"/> using the <see cref="Course.Deserializer(CourseArgs)"/> Method
 /// </summary>
 /// <param name="args">represents data needed to populate a <see cref="Course"/></param>
 /// <see cref="CourseArgs"/>
 public Course(CourseArgs args)
 {
     Deserializer(args);
 }