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