Tanis.Collections.Heap.this C# (CSharp) Method

this() public method

IList implementation. Gets object's value at a specified index. The set operation is impossible on a Heap.
Index is less than zero or Index is greater than Count. [] operator cannot be used to set a value on a Heap.
public this ( int Index ) : object
Index int
return object
		public object this[int Index]
		{
			get
			{
				if(Index >= FList.Count || Index < 0) 
					throw new ArgumentOutOfRangeException("Index is less than zero or Index is greater than Count.");
				return FList[Index];
			}
			set
			{
				throw new InvalidOperationException("[] operator cannot be used to set a value in a Heap.");
			}
		}