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

this() public method

Gets or sets the FieldInfo element at the specified index.
Please refer to ArrayList.this for details.
/// is less than zero. /// -or- /// is equal to or /// greater than . /// The property is set, and the /// is read-only. /// -or- /// The property is set, the FieldInfoCollection /// already contains the specified element at a different index, /// and the FieldInfoCollection ensures /// that all elements are unique.
public this ( int index ) : FieldInfo
index int /// The zero-based index of the /// element to get or set.
return FieldInfo
		public virtual FieldInfo this[int index]
		{
			get
			{
				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.");

				return _data.Items[index];
			}
			set
			{
				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.");

				if (_data.IsUnique) CheckUnique(value, index);

				_data.Items[index] = value;
			}
		}

Same methods

FieldInfoCollection::this ( int index ) : objectIList.System