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