public object?GetNthMask(int index) { MusicTypeData_FieldIndex enu = (MusicTypeData_FieldIndex)index; switch (enu) { case MusicTypeData_FieldIndex.Priority: return(Priority); case MusicTypeData_FieldIndex.DuckingDecibel: return(DuckingDecibel); default: throw new ArgumentException($"Index is out of range: {index}"); } }
public void SetNthMask(int index, object obj) { MusicTypeData_FieldIndex enu = (MusicTypeData_FieldIndex)index; switch (enu) { case MusicTypeData_FieldIndex.Priority: this.Priority = (Exception?)obj; break; case MusicTypeData_FieldIndex.DuckingDecibel: this.DuckingDecibel = (Exception?)obj; break; default: throw new ArgumentException($"Index is out of range: {index}"); } }