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