Castle.Facilities.NHibernateIntegration.Util.FieldInfoCollection.RemoveAt C# (CSharp) 메소드

RemoveAt() 공개 메소드

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.
리턴 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;
		}