Tanis.Collections.Heap.ObjectIsCompliant C# (CSharp) 메소드

ObjectIsCompliant() 개인적인 메소드

private ObjectIsCompliant ( object Object ) : bool
Object object
리턴 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;
		}