/// <inheritdoc/> /// <exception cref="InvalidOperationException">The last alias cannot be removed.</exception> protected override void RemoveItem(int index) { if (this.Count > 1) { base.RemoveItem(index); } else { throw Exceptions.BuildInvalidOperationCannotRemoveLastAlias(); } }