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