// Create a nice array indexer so we can say "data.Station[0]" public ISD_STATION_STATE_TYPE this[long index] { get { switch (index) { case 0: return(Station0); case 1: return(Station1); case 2: return(Station2); case 3: return(Station3); case 4: return(Station4); case 5: return(Station5); case 6: return(Station6); case 7: return(Station7); default: Debug.Assert(false, "invalid index"); return(Station0); } } set { switch (index) { case 0: Station0 = value; break; case 1: Station1 = value; break; case 2: Station2 = value; break; case 3: Station3 = value; break; case 4: Station4 = value; break; case 5: Station5 = value; break; case 6: Station6 = value; break; case 7: Station7 = value; break; default: Debug.Assert(false, "invalid index"); break; } } }
// Create a nice array indexer so we can say "data.Station[0]" public ISD_STATION_STATE_TYPE this[long index] { get { switch(index) { case 0: return Station0; case 1: return Station1; case 2: return Station2; case 3: return Station3; case 4: return Station4; case 5: return Station5; case 6: return Station6; case 7: return Station7; default: Debug.Assert(false, "invalid index"); return Station0; } } set { switch(index) { case 0: Station0 = value; break; case 1: Station1 = value; break; case 2: Station2 = value; break; case 3: Station3 = value; break; case 4: Station4 = value; break; case 5: Station5 = value; break; case 6: Station6 = value; break; case 7: Station7 = value; break; default: Debug.Assert(false, "invalid index"); break; } } }