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