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