Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection.RemoveAt C# (CSharp) Method

RemoveAt() public method

Removes the element at the specified index of the FieldInfoCollection.
Please refer to ArrayList.RemoveAt for details.
/// is less than zero. /// -or- /// is equal to or /// greater than . /// The /// is read-only or has a fixed size.
public RemoveAt ( int index ) : void
index int /// The zero-based index of the element to remove.
return void
		public virtual void RemoveAt(int index)
		{
			if (index < 0)
				throw new ArgumentOutOfRangeException("index", index, "Argument cannot be negative.");

			if (index >= _data.Count)
				throw new ArgumentOutOfRangeException("index", index, "Argument must be less than Count.");

			int count = --_data.Count;
			FieldInfo[] items = _data.Items;

			if (index < count)
				Array.Copy(items, index + 1, items, index, count - index);

			items[count] = null;
		}