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

RemoveDuplicates() public method

Removes all duplicates in the list. Each value encountered will have only one representant.
public RemoveDuplicates ( ) : void
return void
		public void RemoveDuplicates()
		{
			int PosIt;
			PosIt = 0;
			while(PosIt < Count-1)
			{
				if(FComparer.Compare(this[PosIt],this[PosIt+1]) == 0 ) 
					RemoveAt(PosIt);
				else 
					PosIt++;
			}
		}