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