October 2008
Beginner to intermediate
680 pages
16h 48m
English
Next, we'll retrofit the ScheduleOfClasses class that we developed in Chapter 14 with this same ability to "self-initialize" from an ASCII file. We'll add an additional data element to the class: a string that contains the name of the file that holds the SoC data. We'll implement this data element as an auto-implemented property.
using System;
using System.Collections.Generic;
using System.IO;
public class ScheduleOfClasses {
//-------------------------------
// Auto-implemented properties.
//-------------------------------
public string Semester { get; set; }
public string ScheduleFile { get; set; } // This Dictionary stores Section object references using // a String concatenation of course no. and section ...Read now
Unlock full access