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