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