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

ObjectIsCompliant() private method

private ObjectIsCompliant ( object Object ) : bool
Object object
return bool
		private bool ObjectIsCompliant(object Object)
		{
			if(FUseObjectsComparison && !(Object is IComparable)) 
				throw new ArgumentException("The Heap is set to use the IComparable interface of objects, and the object to add does not implement the IComparable interface.");
			if(!FAddDuplicates && Contains(Object)) 
				return false;
			return true;
		}