// Token: 0x060062F5 RID: 25333 RVA: 0x00150844 File Offset: 0x0014EA44 private static void InsertAtHelper <T>(IVector <T> _this, uint index, T item) { try { _this.InsertAt(index, item); } catch (Exception ex) { if (-2147483637 == ex._HResult) { throw new ArgumentOutOfRangeException("index"); } throw; } }
private static void InsertAtHelper <T>(IVector <T> _this, uint index, T item) { try { _this.InsertAt(index, item); // We delegate bounds checking to the underlying collection and if it detected a fault, // we translate it to the right exception: } catch (Exception ex) { if (HResults.E_BOUNDS == ex._HResult) { throw new ArgumentOutOfRangeException(nameof(index)); } throw; } }