Schedule.this C# (CSharp) Method

this() public method

public this ( int index ) : string
index int
return string
        public string this[int index]
        {
            get {
                switch (index) {
                    case 1: return Subject1;
                    case 2: return Subject2;
                    case 3: return Subject3;
                    default: return null;
                }
            }
            set {
                switch (index) {
                    case 1: Subject1 = value; break;
                    case 2: Subject2 = value; break;
                    case 3: Subject3 = value; break;
                    default: break;
                }
            }
        }
Schedule